|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.xml.XMLUtils
public class XMLUtils
This class holds static methods for use in XML processing.
Constructor Summary | |
---|---|
XMLUtils()
|
Method Summary | |
---|---|
static String |
escapeXml(String xml)
Escapes the characters in a String using XML entities. |
static String |
removeXMLComments(String input)
Removes all XML comments from a String. |
static StringBuffer |
stripXmlDeclaration(BufferedReader rdr)
Strips the XML declaration and DTD declaration from the given XML. |
static String |
xml2json(String xml)
Convert XML to JSON. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLUtils()
Method Detail |
---|
public static String removeXMLComments(String input)
input
- XML String
public static final StringBuffer stripXmlDeclaration(BufferedReader rdr) throws IOException
rdr
- A BufferedReader containing XML.
IOException
- If errorpublic static final String xml2json(String xml)
xml
- An XML String.
public static final String escapeXml(String xml)
xml
- The String to escape, may be null
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |