xml
Module providing XML parsing and import functionality.exceptions
- NoXMLParser
Thrown if no parser could be instanciated.
- ParsingFailed
Thrown if the xml source could not be parsed.
properties:- xml The xml source.
methods
- parseXML(xml)
Parses an xml document.
parameters:- xml The XML source.
return value:
A DOM document object. - importNode(importedNode, deep=true)
DOM2 implimentation of document.importNode().
This will import into the current document. In SVG it will create SVG nodes in HTML it will create HTML nodes....
This might become customizable in the future.
parameters:- importedNode The node to import.
- deep Imports all childNodes recursively if set to true.
return value:
The imported node. - node2XML(node)
Turns an XML document into a String.
parameters:- node The node to turn into XML.
return value:
String containing the XML for the node.
requirements
Only works and has been testet in IE, Mozilla and Applications using Adobe's SVG viewer.All applications supporting the creation of the MS XMLDOM ActiveX object or provide a DOMParser object like Mozilla or a parseXML function like Adobe's SVG viewer should also work.