Home

# Library goog.dom.xml

Function Summary
| `createDocument(string= opt_rootTagName, string= opt_namespaceUri) ⇒ ?Document` Creates an XML document appropriate for the current JS runtime
| `createMsXmlDocument_() ⇒ ?Document` Creates an instance of the MSXML2.DOMDocument.
| `loadXml(string xml) ⇒ ?Document` Creates an XML document from a string
| `selectNodes(?Node node, string path) ⇒ (Array|NodeList|null)` Selects multiple nodes using an Xpath expression and a root node
| `selectSingleNode(?Node node, string path) ⇒ ?Node` Selects a single node using an Xpath expression and a root node
| `serialize((Document|Element|null) xml) ⇒ string` Serializes an XML document or subtree to string.
| `setAttributes(!Element element, !Object attributes)` Sets multiple attributes on an element. Differs from goog.dom.setProperties in that it exclusively uses the element's setAttributes method. Use this when you need to ensure that the exact property is available as an attribute and can be read later by the native getAttribute method.