[jdom-interest] Probelm while using DOM parser for validating

tanvi.joshi at accenture.com tanvi.joshi at accenture.com
Mon Aug 26 21:32:44 PDT 2002


I m using JDom  DOM parser to parser my xml . The following is the code for
that .

try {
         DOMBuilder builder = null;
         builder = new DOMBuilder();

         // true implies validating parser.
         builder.setValidation(true) ;
         org.jdom.Document docParse = builder.build(doc);

    }
catch (Exception ioe)
   {
          logger.logDebug("IOException is " + ioe);
           Message m = new Message();
           m.writeMsg(xmlString);
           throw new InvalidMessageException("Exception occured while
validating the XML" , m);
    }




i have added two jars jdom.jar , and xcers.jar in my classpath . But while
running the example i m getting the error .

      java.lang.Throwable()
      java.lang.Error()
      java.lang.LinkageError()
      java.lang.IncompatibleClassChangeError()
      java.lang.AbstractMethodError()
      void org.jdom.input.DOMBuilder.buildTree(org.w3c.dom.Node,
org.jdom.Document, org.jdom.Element, boolean)
      void org.jdom.input.DOMBuilder.buildTree(org.w3c.dom.Node,
org.jdom.Document, org.jdom.Element, boolean)
      void org.jdom.input.DOMBuilder.buildTree(org.w3c.dom.Node,
org.jdom.Document, org.jdom.Element, boolean)
      org.jdom.Document
org.jdom.input.DOMBuilder.build(org.w3c.dom.Document)
      void
com.jpm.is.im.instructionfactory.DtdValidator.validatexmlString(java.lang.String)

What could be the reason ?


Thanks

Tanvi Joshi



This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.




More information about the jdom-interest mailing list