public class

XMLParser

extends Object
java.lang.Object
   ↳ com.google.gwt.xml.client.XMLParser

Class Overview

This class represents the client interface to XML parsing.

Summary

Public Methods
static Document createDocument()
This method creates a new document, to be manipulated by the DOM API.
static Document parse(String contents)
This method parses a new document from the supplied string, throwing a DOMParseException if the parse fails.
static void removeWhitespace(Node n)
This method removes all Text nodes which are made up of only white space.
static boolean supportsCDATASection()
This method determines whether the browser supports CDATASection as distinct entities from Text nodes.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Document createDocument ()

This method creates a new document, to be manipulated by the DOM API.

Returns
  • the newly created document

public static Document parse (String contents)

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
Returns
  • the newly created Document

public static void removeWhitespace (Node n)

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 descendents removed.

public static boolean supportsCDATASection ()

This method determines whether the browser supports CDATASection as distinct entities from Text nodes.

Returns
  • true if the browser supports CDATASection, otherwise false.