Seam Core JSF2 2.3.2-SNAPSHOT

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
static org.dom4j.io.SAXReader getSafeSaxReader()
          Get safe SaxReader with doctype feature disabled
 
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

getSafeSaxReader

public static org.dom4j.io.SAXReader getSafeSaxReader()
                                               throws Exception
Get safe SaxReader with doctype feature disabled

Returns:
Throws:
Exception
See Also:
http://xerces.apache.org/xerces2-j/features.html#disallow-doctype-decl

Seam Core JSF2 2.3.2-SNAPSHOT

Copyright © 2016 Seam Framework. All Rights Reserved.