Class XMLUtil

java.lang.Object
org.cdlib.mrt.utility.XMLUtil

public class XMLUtil extends Object
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 Details

    • XMLUtil

      public XMLUtil()
  • Method Details

    • encodeValue

      public static String encodeValue(String xmlString) throws TException
      Replace XML special characters with Entity references
      Returns:
      encoded string
      Throws:
      TException
    • numericEncoding

      protected static String numericEncoding(String in)
    • encodeName

      public static String encodeName(String xmlString) throws TException
      Replace XML special characters with Entity references
      Returns:
      encoded string
      Throws:
      TException
    • decode

      public static String decode(String xmlString) throws TException
      Replace Entity references with XML special characters
      Returns:
      decoded string
      Throws:
      TException
    • removeXMLHeader

      public static String removeXMLHeader(String xml) throws TException
      Throws:
      TException