org.jboss.seam.util
Class XML
java.lang.Object
org.jboss.seam.util.XML
public class XML
- extends Object
|
Constructor Summary |
XML()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML
public XML()
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
Copyright © 2016 Seam Framework. All Rights Reserved.