com.sapportals.wcm.util.xml

Class DomBuilder

java.lang.Object
  extended bycom.sapportals.wcm.util.xml.DomBuilder

public class DomBuilder
extends Object

Copyright (c) SAP AG 2001-2005


Constructor Summary
DomBuilder()
           
 
Method Summary
static Document newDocument()
           
static Document parse(InputSource is, boolean namespaceAware)
           
static Document parse(InputStream input, boolean tolerateNSerrors)
          Parse an input stream into a Document
static Document parse(String input)
          Parse a string into a Document
static Document parse(String input, boolean namespaceAware)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomBuilder

public DomBuilder()
Method Detail

newDocument

public static Document newDocument()

parse

public static Document parse(String input,
                             boolean namespaceAware)
                      throws SAXException,
                             IOException
Throws:
SAXException
IOException

parse

public static Document parse(InputSource is,
                             boolean namespaceAware)
                      throws SAXException
Throws:
SAXException

parse

public static Document parse(String input)
                      throws SAXException,
                             IOException
Parse a string into a Document

Parameters:
input - the input stream
Returns:
the Document
Throws:
SAXException
IOException

parse

public static Document parse(InputStream input,
                             boolean tolerateNSerrors)
                      throws SAXException,
                             IOException
Parse an input stream into a Document

Parameters:
input - the input stream
tolerateNSerrors - when set to true , elements that aren't XML-NS-wellformed but which are XML-wellformed will be tolerated (and dropped)
Returns:
the Document
Throws:
SAXException
IOException


Copyright 2006 SAP AG Complete Copyright Notice