Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] ParseException when not validating

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Bradley S. Huffman" <hip AT a.cs.okstate.edu>
  • To: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] ParseException when not validating
  • Date: Thu, 19 Sep 2002 21:47:50 -0500

When I use

Builder parser = new Builder(false);

and run through

<?xml version="1.0"?>

<root attr="&lt;this is a attribute&gt;">
&lt;this is not&gt;
</root>

I get the ParseException

Document root element "root", must match DOCTYPE root "null".

Hmmm, after looking in Builder constructor Builder(boolean validate) is
this(findParser(validate),true), should it be
this(findParser(validate),validate)?

Brad




Archive powered by MHonArc 2.6.24.

Top of Page