Package org.cdlib.mrt.utility
Class XMLUtil
java.lang.Object
org.cdlib.mrt.utility.XMLUtil
This class is a collection of XML Utility functions.
They are all static and so can be called without instanciating this class.
- Author:
- David Loy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReplace Entity references with XML special charactersstatic StringencodeName(String xmlString) Replace XML special characters with Entity referencesstatic StringencodeValue(String xmlString) Replace XML special characters with Entity referencesprotected static Stringstatic StringremoveXMLHeader(String xml)
-
Constructor Details
-
XMLUtil
public XMLUtil()
-
-
Method Details
-
encodeValue
Replace XML special characters with Entity references- Returns:
- encoded string
- Throws:
TException
-
numericEncoding
-
encodeName
Replace XML special characters with Entity references- Returns:
- encoded string
- Throws:
TException
-
decode
Replace Entity references with XML special characters- Returns:
- decoded string
- Throws:
TException
-
removeXMLHeader
- Throws:
TException
-