Class DOMParser
Defined in: sarissa.js.
Constructor Attributes | Constructor Name and Description |
---|---|
DOMParser is a utility class, used to construct DOMDocuments from XML strings
|
Method Attributes | Method Name and Description |
---|---|
parseFromString(sXml, contentType)
Construct a new DOM Document from the given XMLstring
|
Class Detail
DOMParser()
DOMParser is a utility class, used to construct DOMDocuments from XML strings
Method Detail
{DOMDocument}
parseFromString(sXml, contentType)
Construct a new DOM Document from the given XMLstring
- Parameters:
- {String} sXml
- the given XML string
- {String} contentType
- the content type of the document the given string represents (one of text/xml, application/xml, application/xhtml+xml).
- Returns:
- {DOMDocument} a new DOM Document from the given XML string