xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
- To: "MULS PATRICK" <patrick.muls AT datassur.be>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] XML-heading causes IOException
- Date: Tue, 19 Aug 2003 06:52:53 -0400
Hello,
I'm trying out XOM for an upcoming project. I created an XML-file
containing <?xml version ...> and <!DOCTYPE ...> tags and a comment-tag.
When I try to build the document in my application using:
Builder builder = new Builder();
Document doc = builder.build(flXml);
I get an IOException on the file. Removing those 3 tags from the file
solves this problem. But will they not always be present in an XML-file?
And having to remove them first seems a timewaisting operation. Any
suggestions?
You have not provided enough information to diagnose the problem. Seeing the actual XML document and code would be required to tell what's going on here. probably your document is malformed and you're getting an XMLException, not an IOException, but that's just a guess without seeing the code.
--
Elliotte Rusty Harold
elharo AT metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA
-
[XOM-interest] XML-heading causes IOException,
MULS PATRICK, 08/19/2003
-
Re: [XOM-interest] XML-heading causes IOException,
Elliotte Rusty Harold, 08/19/2003
- Re: [XOM-interest] XML-heading causes IOException, Francois Beausoleil, 08/19/2003
-
Re: [XOM-interest] XML-heading causes IOException,
Elliotte Rusty Harold, 08/19/2003
Archive powered by MHonArc 2.6.24.