org.jboss.seam.util
Class XML

java.lang.Object
  extended by org.jboss.seam.util.XML

public class XML
extends Object


Nested Class Summary
static class XML.NullEntityResolver
           
 
Constructor Summary
XML()
           
 
Method Summary
static org.dom4j.Element getRootElement(InputStream stream)
           
static org.dom4j.Element getRootElementSafely(InputStream stream)
          Parses an XML document safely, as to not resolve any external DTDs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XML

public XML()
Method Detail

getRootElement

public static org.dom4j.Element getRootElement(InputStream stream)
                                        throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

getRootElementSafely

public static org.dom4j.Element getRootElementSafely(InputStream stream)
                                              throws org.dom4j.DocumentException
Parses an XML document safely, as to not resolve any external DTDs

Throws:
org.dom4j.DocumentException


Copyright © 2011 Seam Framework. All Rights Reserved.