XML API
|
Object
|
Description
|
Availability
|
|
DOMParser
|
Enables you to parse strings into a DOM.
|
4.7.1 or later
|
|
XMLSerializer
|
Enables you to convert a DOM document or a DOM subtree into
a string.
|
4.7.1 or later
|
Object: DOMParser
Availability
|
BlackBerry
Device Software version 4.7.1 or later
|
The DOMParser object provides the parseFromString() method, which creates an XML document from a XML string.
The BlackBerry Browser always parses the current page into a DOM document, but you can also create a DOM from an XML string that you construct, or an XML string that you retrieve from a remote location.
DOMParser methods
|
Method name
|
Description
|
Support level
|
Availability
|
|
parseFromString()
|
Converts a string into an XML document.
|
Not defined in any specification.
|
4.7.1 or later
|
Object: XMLSerializer
Availability
|
BlackBerry
Device Software version 4.7.1 or later
|
The XMLSerializer object provides the serializeToString()
method, which converts an XML document or subtree into a string.
XMLSerializer methods
|
Method name
|
Description
|
Support level
|
Availability
|
|
serializeToString()
|
Converts an XML document or subtree into a string.
|
Not part of any standard.
|
4.7.1 or later
|
Was this information helpful? Send us your comments.