Class SimpleDOMParser

java.lang.Object
com.articulate.sigma.SimpleDOMParser

public class SimpleDOMParser extends Object
SimpleDOMParser is a highly-simplified XML DOM parser.
  • Constructor Details

    • SimpleDOMParser

      public SimpleDOMParser()
  • Method Details

    • setSkipProlog

      public void setSkipProlog(boolean b)
    • readFile

      public static SimpleElement readFile(String filename)
      Read the full path of an XML file and returns the SimpleElement object that corresponds to its parsed format.
    • parse

      public SimpleElement parse(Reader reader) throws IOException
      Throws:
      IOException
    • convertToReservedCharacters

      public static String convertToReservedCharacters(String input)
      Convert ampersand character elements to reserved characters.
    • convertFromReservedCharacters

      public static String convertFromReservedCharacters(String input)
      Convert reserved characters to ampersand character elements.
    • main

      public static void main(String[] args)