Class BasicXMLparser

java.lang.Object
com.articulate.sigma.BasicXMLparser

public class BasicXMLparser extends Object
Parses simple XML into a hierarchy of BasicXMLelement (s). Used instead of SAX because that class is so complex. The right thing to do is probably to subclass SAX or create some simpler utility class that makes using it easier. This class assumes that each XML tag is on its own line and that every attribute value is enclosed in single or double quotes.
  • Field Details

  • Constructor Details

    • BasicXMLparser

      public BasicXMLparser(String xml)
      Constructor that parses an XML-formatted string, with one tag per line, into an ArrayList of BasicXMLelement (s).
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • main

      public static void main(String[] args)
      Test method.