| Function Summary | |
createDocument(string= opt_rootTagName, string= opt_namespaceUri) ⇒ ?DocumentCreates an XML document appropriate for the current JS runtime | |
createMsXmlDocument_() ⇒ ?DocumentCreates an instance of the MSXML2.DOMDocument. | |
loadXml(string xml) ⇒ ?DocumentCreates 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) ⇒ ?NodeSelects a single node using an Xpath expression and a root node | |
serialize((Document|Element|null) xml) ⇒ stringSerializes 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. | |