Class PolarXMLdocument
- Namespace
- PolarStudio
- Assembly
- PolarStudio.dll
This class is a wrapper for the main parsing functions of the dot net XmlDocument object to give it an equal interface as the MSXML objects.
public class PolarXMLdocument : XmlDocument, IEnumerable, ICloneable, IXPathNavigable
- Inheritance
-
PolarXMLdocument
- Implements
- Inherited Members
- Extension Methods
Properties
ParseError
Returns the error that is caused by parsing invalid xml.
public XMLparseError ParseError { get; }
Property Value
XML
This method returns the full xml.
public string XML { get; }
Property Value
Methods
AppendChild(PolarXMLnode)
This method is used to append a child node.
public void AppendChild(PolarXMLnode pChildNode)
Parameters
pChildNode
PolarXMLnodeThe child node to append.
CreateNode(int, string, string)
This method creates a node.
public PolarXMLnode CreateNode(int pNodeType, string pNodeName, string pNamespaceDummy)
Parameters
pNodeType
intThe type of node. Must be 1 (!).
pNodeName
stringThe name of the node.
pNamespaceDummy
stringNot supported. This dummy parameter is ignored.
Returns
Exceptions
SelectNodes(string)
This method runs a XPath expression to select one single node.
public Collection<PolarXMLnode> SelectNodes(string pXPath)
Parameters
pXPath
stringThe XPath expression to run.
Returns
- Collection<PolarXMLnode>
A collection of nodes matching the expression.
SelectSingleNode(string)
This method runs a XPath expression to select one single node.
public PolarXMLnode SelectSingleNode(string pXPath)
Parameters
pXPath
stringThe XPath expression to run.
Returns
- PolarXMLnode
The first matching XML node or Nothing if no nodes match the expression.
loadXml(string)
Use this method to read xml. Returns True if successful. Use ParseError to get the error in case a False was returned.
public bool loadXml(string xml)
Parameters
xml
stringThe unicode xml string to parse
Returns
- bool
A boolean indicating success.