Telogis.GeoBase.XMLDoc |
A class that provides a wrapper around all of the basic required XML functionality to abstract the differences in implementations between web browsers.
Name | Description |
---|---|
appendChild (XMLDoc child) | Attaches a child node described by an XMLDoc to the root node of the calling document. ArgumentsReturnsXMLDoc - The result of the append operation, i.e. the calling XMLDoc. |
doc () | Finds the XML document that the calling object is handling. ReturnsObject - The XML document object. |
encodeXML (String str) | Encodes a string for display in an XML (or, say, XHTML) context by replacing reserved characters with the appropriate escaped sequences. Arguments
String - The appropriately encoded equivalent of XMLDoc.encodeXML.str. |
getAttribute (String attr) | Finds the value of a certain attribute of the current XML node. Arguments
String - The value of the attribute named by XMLDoc.getAttribute.attr on the root node of the document. |
getTagName () | Finds the tag name of the root element of the XMLDoc's document. ReturnsString - The XML object's root tag name. |
parentNode () | Finds the parent of the current XML node. ReturnsObject - The parent node of the caller. |
removeNode (String xpath) | Searches for a single nodes given by an XPath expression in the XML document, and once it is found, removes it. Arguments
|
replaceNode (String path, XMLDoc newNode) | Searches for a single node given by an XPath expression in the XML document, and once it is found, replaces it with another. Arguments
XMLDoc - The replacement node (XMLDoc.newNode, or null if the search did not return any results and no replacement was performed. |
root () | Finds the root DOM node of the calling XMLDoc wrapper. This will cause the XML text to be parsed if it has not been already. ReturnsElement - The root node of the XMLDoc's document. |
selectNodes (String path) | Finds a collection of nodes in the XML document from an XPath string. Arguments
Array - The requested XML node collection, as an array of XMLDocs. |
selectSingleNode (String path) | Finds a single node in the XML document from an XPath string. Arguments
XMLDoc - The requested XML node. |
setAttribute (String attr, String value) | Sets the value of a certain attribute of the current XML node. Arguments
XMLDoc - The result of the setAttribute operation, i.e. the calling XMLDoc. |
text () | Finds the XML string associated with the document represented by the object. ReturnsString - The string representation of the XML object. |
transformXSL (String xslDoc, String args) | Applies an XSLT stylesheet to transform the XML document by creating and running an XSL processor. Arguments
String - The text output of the transformation. |