August 2003
Beginner to intermediate
600 pages
12h 57m
English
Of course, the XmlDocument class provides methods for creating every node type. Table 11.2 lists the additional System.Xml.XmlNodeTypes and their corresponding creation methods.
| NODETYPE | CREATION METHOD |
|---|---|
| CDATA | CreateCDataSection(string data) |
| Comment | CreateComment(string data) |
| DocumentFragment | CreateDocumentFragment() |
| EntityReference | CreateEntityReference(string name) |
| ProcessingInstruction | CreateProcessingInstruction(string target, string data) |
| Whitespace | CreateWhitespace(string ws) |
| Text | CreateTextNode(string text) |
| SignificantWhitespace | CreateSignificantWhitespace(string ws) |
The CreateEntityReference method must be handled with care. The method will accept any legal name that can ...
Read now
Unlock full access