Package com.google.gwt.xml.client
Class XMLParser
java.lang.Object
com.google.gwt.xml.client.XMLParser
This class represents the client interface to XML parsing.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Document
This method creates a new document, to be manipulated by the DOM API.static Document
This method parses a new document from the supplied string, throwing aDOMParseException
if the parse fails.static void
This method removes allText
nodes which are made up of only white space.static boolean
Deprecated.Always returns true
-
Method Details
-
createDocument
This method creates a new document, to be manipulated by the DOM API.- Returns:
- the newly created document
-
parse
This method parses a new document from the supplied string, throwing aDOMParseException
if the parse fails.- Parameters:
contents
- the String to be parsed into aDocument
- Returns:
- the newly created
Document
-
removeWhitespace
This method removes allText
nodes which are made up of only white space.- Parameters:
n
- the node which is to have all of its whitespace descendents removed.
-
supportsCDATASection
Deprecated.Always returns trueThis method determines whether the browser supportsCDATASection
as distinct entities fromText
nodes.- Returns:
- true if the browser supports
CDATASection
, otherwisefalse
.
-