| java.lang.Object com.google.gwt.xml.client.XMLParser
XMLParser | public class XMLParser (Code) | | This class represents the client interface to XML parsing.
|
Method Summary | |
public static Document | createDocument() This method creates a new document, to be manipulated by the DOM API. | public static Document | parse(String contents) This method parses a new document from the supplied string, throwing a
DOMParseException if the parse fails. | public static void | removeWhitespace(Node n) This method removes all Text nodes which are made up of only
white space. | public static boolean | supportsCDATASection() This method determines whether the browser supports
CDATASection
as distinct entities from Text nodes. |
createDocument | public static Document createDocument()(Code) | | This method creates a new document, to be manipulated by the DOM API.
the newly created document |
parse | public static Document parse(String contents)(Code) | | This method parses a new document from the supplied string, throwing a
DOMParseException if the parse fails.
Parameters: contents - the String to be parsed into a Document the newly created Document |
removeWhitespace | public static void removeWhitespace(Node n)(Code) | | This method removes all Text nodes which are made up of only
white space.
Parameters: n - the node which is to have all of its whitespace descendentsremoved. |
supportsCDATASection | public static boolean supportsCDATASection()(Code) | | This method determines whether the browser supports
CDATASection
as distinct entities from Text nodes.
true if the browser supports CDATASection, otherwisefalse . |
|
|