|This interface represents a content sink for generic XML files.
The goal of this sink is to deal with XML documents that do not
have pre-built semantics, though it may also be implemented for
cases in which semantics are hard-wired.
The expectation is that the parser has already performed
well-formedness and validity checking.
XXX The expectation is that entity expansion will be done by the sink
itself. This would require, however, that the sink has the ability
to query the parser for entity replacement text.
XXX This interface does not contain a mechanism for the sink to
get specific schema/DTD information from the parser. This information
may be necessary for entity expansion. It is also necessary for
building the DOM portions that relate to the schema.
XXX This interface does not deal with the presence of an external
subset. It seems possible that this could be dealt with completely
at the parser level.
|This will prettyprint the document if the document is loaded in a
@param aDocument document to prettyprint
@param [out] aDidPrettyPrint if true, and error not returned, actually
went ahead with prettyprinting the document.
|This will parse the content of the PI, to extract the value of the pseudo
attribute with the name specified in aName. See
http://www.w3.org/TR/xml-stylesheet/#NT-StyleSheetPI for the specification
which is used to parse the content of the PI.
@param aName the name of the attribute to get the value for
@param aValue [out] the value for the attribute with name specified in
aAttribute. Empty if the attribute isn't present.
|Tells this processing instruction to use a different base URI. This is used
for proper loading of xml-stylesheet processing instructions in XUL
overlays and is only currently used by nsXMLStylesheetPI.
@param aNewBaseURI the new base URI, nullptr to use the default base URI.