Table of Contents

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

XMLparseError

XML

This method returns the full xml.

public string XML { get; }

Property Value

string

Methods

AppendChild(PolarXMLnode)

This method is used to append a child node.

public void AppendChild(PolarXMLnode pChildNode)

Parameters

pChildNode PolarXMLnode

The child node to append.

CreateNode(int, string, string)

This method creates a node.

public PolarXMLnode CreateNode(int pNodeType, string pNodeName, string pNamespaceDummy)

Parameters

pNodeType int

The type of node. Must be 1 (!).

pNodeName string

The name of the node.

pNamespaceDummy string

Not supported. This dummy parameter is ignored.

Returns

PolarXMLnode

Exceptions

Exception

SelectNodes(string)

This method runs a XPath expression to select one single node.

public Collection<PolarXMLnode> SelectNodes(string pXPath)

Parameters

pXPath string

The 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 string

The 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 string

The unicode xml string to parse

Returns

bool

A boolean indicating success.