WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.
XML
Mozilla provides a number of XML features. The nsIXMLHttpRequest, nsIDOMParser nsIDOMSerializer interfaces can be used to load, parse and serialize XML. These interfaces are directly available in JavaScript, so you don't need to use the XPCOM interfaces direcly.
Use the nsIXSLTProcessor interface to apply an XSLT file to a document. Use the nsIXPointerEvaluator and nsIFIXPtrEvaluator interfaces to evaluate XPointers and FIXPtrs.
Jump to:
Interfaces
The following XML interfaces are available.
nsIDOMParsernsIDOMSerializer
nsIExpatSink
nsIExtendedExpatSink
nsIFIXptrEvaluator
nsIJSXMLHttpRequest
nsIModifyableXPointerResult
nsISAXAttributes
nsISAXContentHandler
nsISAXDTDHandler
nsISAXErrorHandler
nsISAXLexicalHandler
nsISAXLocator
nsISAXMutableAttributes
nsISAXXMLFilter
nsISAXXMLReader
nsIXMLHttpRequest
nsIXPointerEvaluator
nsIXPointerResult
nsIXPointerSchemeContext
nsIXPointerSchemeProcessor
nsIXSLTException
nsIXSLTProcessor
nsIXSLTProcessorObsolete
nsIXSLTProcessorPrivate
txIEXSLTRegExFunctions
txIFunctionEvaluationContext
txINodeSet
Components
The following XML components are available.
@mozilla.org/document-transformer;1?type=text/xsl@mozilla.org/document-transformer;1?type=text/xslt
@mozilla.org/document-transformer;1?type=xslt
@mozilla.org/exslt/regexp;1
@mozilla.org/parser/parser-service;1
@mozilla.org/saxparser/attributes;1
@mozilla.org/saxparser/xmlreader;1
@mozilla.org/transformiix-domci-extender;1
@mozilla.org/transformiix-nodeset;1
@mozilla.org/xml/xpointer;1?scheme=xpath1
@mozilla.org/xmlextras-domci-extender;1
@mozilla.org/xmlextras/domparser;1
@mozilla.org/xmlextras/fixptrevaluator;1
@mozilla.org/xmlextras/xmlhttprequest;1
@mozilla.org/xmlextras/xmlserializer;1
@mozilla.org/xmlextras/xpointerevaluator;1
@mozilla.org/xmlextras/xpointerresult;1
Reference documentation is generated from Mozilla's source.
