code: public static void parse(DocListener document, InputSource is, String tagmap) {
          XmlParser p = new XmlParser();
          p.go(document, is, tagmap);
      }
docs: Parses a given file that validates with the iText DTD and writes the content to a document.
  @param document The document that will listen to the parser
  @param is The inputsource with the content
  @param tagmap a user defined tagmap