this();
- Initializes a new instance.
XPathNavigator createNavigator();
- Creates an XPathNavigator for navigating this instance.
XmlNode createNode(XmlNodeType type, char[] name, char[] namespaceURI);
- Creates an XmlNode with the specified type, name and namespaceURI.
Parameters
XmlNodeType type
The type of the new node.
char[] name
The qualified name of the new node.
char[] namespaceURI
The namespace URI of the new node.
Returns
The new XmlNode.
XmlNode createNode(XmlNodeType type, char[] prefix, char[] name, char[] namespaceURI);
- Creates an XmlNode with the specified type, prefix, name and namespaceURI.
Parameters
XmlNodeType type
The type of the new node.
char[] prefix
The prefix of the new node.
char[] name
The local name of the new node.
char[] namespaceURI
The namespace URI of the new node.
Returns
The new XmlNode.
XmlElement createElement(char[] name);
- Creates an XmlElement with the specified name.
Parameters
char[] name
The qualified name of the element.
Returns
The new XmlElement.
XmlElement createElement(char[] qualifiedName, char[] namespaceURI);
- Creates an XmlElement with the specified name and namespaceURI.
Parameters
char[] qualifiedName
The qualified name of the element.
char[] namespaceURI
The namespace URI of the element.
Returns
The new XmlElement.
XmlElement createElement(char[] prefix, char[] localName, char[] namespaceURI);
- Creates an XmlElement with the specified prefix, localName and namespaceURI.
Parameters
char[] prefix
The prefix of the element.
char[] localName
The local name of the element.
char[] namespaceURI
The namespace URI of the element.
Returns
The new XmlElement.
XmlAttribute createAttribute(char[] name);
- Creates an XmlAttribute with the specified name.
Parameters
char[] name
The qualified name of the attribute.
Returns
The new XmlAttribute.
XmlAttribute createAttribute(char[] qualifiedName, char[] namespaceURI);
- Creates an XmlAttribute with the specified name and namespaceURI.
Parameters
char[] qualifiedName
The qualified name of the attribute.
char[] namespaceURI
The namespace URI of the attribute.
Returns
The new XmlAttribute.
XmlAttribute createAttribute(char[] prefix, char[] localName, char[] namespaceURI);
- Creates an XmlAttribute with the specified prefix, localName and namespaceURI.
Parameters
char[] prefix
The prefix of the attribute.
char[] localName
The local name of the attribute.
char[] namespaceURI
The namespace URI of the attribute.
Returns
The new XmlAttribute.
XmlCDataSection createCDataSection(char[] data);
- Creates an XmlCDataSection node with the specified data.
Parameters
text
The data for the node.
Returns
The new XmlCDataSection node.
XmlComment createComment(char[] data);
- Creates an XmlComment node with the specified data.
Parameters
text
The data for the node.
Returns
The new XmlComment node.
XmlText createTextNode(char[] text);
- Creates an XmlText node with the specified text.
Parameters
char[] text
The text for the node.
Returns
The new XmlText node.
XmlProcessingInstruction createProcessingInstruction(char[] target, char[] data);
- Creates an XmlProcessingInstruction node with the specified name and data.
Parameters
char[] target
the name of the processing instruction.
char[] data
The data for the processing instruction.
Returns
The new XmlProcessingInstruction node.
XmlDeclaration createXmlDeclaration(char[] xmlversion, char[] encoding, char[] standalone);
- Create an XmlDeclaration node with the specified values.
Parameters
char[] xmlversion
The version must be "1.0".
char[] encoding
The value of the encoding attribute.
char[] standalone
The value must be either "yes" or "no".
Returns
The new XmlDeclaration node.
XmlEntityReference createEntityReference(char[] name);
- Creates an XmlEntityReference with the specified name.
Parameters
Returns
The new XmlEntityReference.
XmlDocumentFragment createDocumentFragment();
- Creates an XmlDocumentFragment.
Returns
The new XmlDocumentFragment.
void load(char[] fileName);
- Loads the XML document from the specified URL.
Parameters
char[] fileName
URL for the file containing the XML document to load. The URL can be either a local file or a web address.
Throws
XmlException if there is a load or parse error in the XML.
void load(Stream input);
- Loads the XML document from the specified stream.
Parameters
Stream input
The stream containing the XML document to load.
Throws
XmlException if there is a load or parse error in the XML.
void loadXml(char[] xml);
- Loads the XML document from the specified string.
Parameters
char[] xml
The string containing the XML document to load.
Throws
XmlException if there is a load or parse error in the XML.
void save(char[] fileName);
- Saves the XML document to the specified file.
Parameters
char[] fileName
The location of the file where you want to save the document.
Throws
XmlException if there is no document element.
void save(Stream output);
- Saves the XML document to the specified stream.
Parameters
Stream output
The stream to which you want to save.
XmlElement getElementByTagId(char[] elementId);
- Gets the XmlElement with the specified ID.
Parameters
char[] elementId
The attribute ID to match.
Returns
The XmlElement with the matching ID.
XmlElement documentElement();
- Gets the root element for the document.
Returns
The XmlElement representing the root of the XML document tree. If no root exists, null is returned.
XmlNodeType nodeType();
- Gets the type of the current node.
Returns
For XmlDocument nodes, the value is XmlNodeType.Document.
char[] localName();
- Gets the locale name of the node.
Returns
For XmlDocument nodes, the local name is #document.
char[] name();
- Gets the qualified name of the node.
Returns
For XmlDocument nodes, the name is #document.
XmlNode parentNode();
- Gets the parent node.
Returns
For XmlDocument nodes, null is returned.
XmlDocument ownerDocument();
- Gets the XmlDocument to which the current node belongs.
Returns
For XmlDocument nodes, null is returned.
void xml(char[] value);
char[] xml();
- Gets or sets the markup representing the children of this node.
Returns
The markup of the children of this node.
final void preserveWhitespace(bool value);
final bool preserveWhitespace();
- Gets or sets a value indicating whether to preserve white space in element content.
Parameters
bool value
true to preserve white space; otherwise, false.