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 String
Replace Entity references with XML special charactersstatic String
encodeName
(String xmlString) Replace XML special characters with Entity referencesstatic String
encodeValue
(String xmlString) Replace XML special characters with Entity referencesprotected static String
static String
removeXMLHeader
(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
-