BiXmlDocument
This is a factory class to the Microsoft DOMDocument object. Creating a BiXmlDocument actually creates and returns a DOMDocument. For Mozilla this returns a new XMLDocument (as defined by the W3C DOM). For Mozilla we also extend the DOM Node interfaces to make it more compatible with MSXML.
This class extends Object and therefore all methods and fields available for Object are also available for BiXmlDocument .
Constructor
new BiXmlDocument ( )
Parameters
No parameters.
Properties
None.
Methods
None.
Events
None.
Static Methods
| Name | Description |
addNamespaces | Adds one or more namespaces to a document so that their prefix can be used in XPath expressions on the document |
create | Creates a new BiXmlDocument |
getNamespaces | This returns the namespaces that can be used in an XPath expressions as a hash (Object) where the key is the prefix and the value the URN |
removeNamespaces | Removes one or more namespaces to a document so that their prefix no longer can be used in XPath expressions on the document |
setNamespaces | This sets the namespaces that can be used in an XPath expressions. The namespaces are defined as a hash (Object) where the key is the prefix and the value the URN |
Static Fields
None.
Remarks
For methods, fields and more see the MSDN documentation The following MSXML features are emulated in Mozilla: XMLDocument createNode XMLDocument onreadystatechange XMLDocument loadXML XMLDocument parseError and the IXMLDOMParseError interface Node xml Node baseName Node text Node selectNodes Node selectSingleNode Node transformNode Node transformNodeToObject XMLDocument setProperty (supports "SelectionNamespaces")
Static Method Details
addNamespaces
Adds one or more namespaces to a document so that their prefix can be used in XPath expressions on the document
Syntax
BiXmlDocument . addNamespaces ( oNode,oNamespaces ) Parameters
| Name | Type | Optional | Default | Descripton |
oNode | XMLDocument | The XML document that you are using XPath with | ||
oNamespaces | Object | The hash containing the namespaces to add |
Return Type
void
create
Creates a new BiXmlDocument
Syntax
BiXmlDocument . create ( ) Parameters
No arguments.
Return Type
getNamespaces
This returns the namespaces that can be used in an XPath expressions as a hash (Object) where the key is the prefix and the value the URN
Syntax
BiXmlDocument . getNamespaces ( oNode ) Parameters
| Name | Type | Optional | Default | Descripton |
oNode | XMLDocument | The document to get the namespaces for |
Return Type
Object
removeNamespaces
Removes one or more namespaces to a document so that their prefix no longer can be used in XPath expressions on the document
Syntax
BiXmlDocument . removeNamespaces ( oNode,oNamespaces ) Parameters
| Name | Type | Optional | Default | Descripton |
oNode | XMLDocument | The XML document that you are using XPath with | ||
oNamespaces | Object | The hash containing the namespaces to remove |
Return Type
void
setNamespaces
This sets the namespaces that can be used in an XPath expressions. The namespaces are defined as a hash (Object) where the key is the prefix and the value the URN
Syntax
BiXmlDocument . setNamespaces ( oNode,oNamespaces ) Parameters
| Name | Type | Optional | Default | Descripton |
oNode | XMLDocument | The XML document that you are using XPath with | ||
oNamespaces | Object | The hash containing the namespaces |
Return Type
void