com.triactive.jdo.util
Class XMLHelper

java.lang.Object
  extended bycom.triactive.jdo.util.XMLHelper

public class XMLHelper
extends java.lang.Object

A utility class used to obtain DocumentBuilders.

Author:
Kelly Grizzle

Method Summary
static javax.xml.parsers.DocumentBuilder getDocumentBuilder()
          Obtain a DocumentBuilder to parse XML files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDocumentBuilder

public static javax.xml.parsers.DocumentBuilder getDocumentBuilder()
                                                            throws javax.xml.parsers.ParserConfigurationException
Obtain a DocumentBuilder to parse XML files. Whether this is validating DocumentBuilder depends on the "com.triactive.jdo.useValidatingXmlParser" system propery.

Returns:
A DocumentBuilder to parse XML files.
Throws:
javax.xml.parsers.ParserConfigurationException - If a DocumentBuilder cannot be created.


Copyright © 2001-2007 The TJDO Project All Rights Reserved.