org.jboss.seam.util
public class XML extends Object
Modifier and Type | Class and Description |
---|---|
static class |
XML.NullEntityResolver |
Constructor and Description |
---|
XML() |
Modifier and Type | Method and Description |
---|---|
static String |
escapeXMLChars(String input)
Get escaped <, ", ' characters from input
|
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
|
public static org.dom4j.Element getRootElement(InputStream stream) throws org.dom4j.DocumentException
org.dom4j.DocumentException
public static org.dom4j.Element getRootElementSafely(InputStream stream) throws org.dom4j.DocumentException
org.dom4j.DocumentException
public static org.dom4j.io.SAXReader getSafeSaxReader() throws Exception
Exception
http://xerces.apache.org/xerces2-j/features.html#disallow-doctype-decl
Copyright © 2015 Seam Framework. All Rights Reserved.