Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] mysterious error when parsing OpenOffice document

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Brian Slesinsky <brian AT slesinsky.org>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] mysterious error when parsing OpenOffice document
  • Date: Tue, 07 Dec 2004 04:52:20 -0500

Brian Slesinsky wrote:

Hi, has anyone had any success parsing OpenOffice documents with XOM? I get a mysterious error:

nu.xom.ParsingException: Reference to undefined parameter entry "%{0};". at line 548, column -1.


The {0} looks like a parser bug to me. I suspect it's reporting the index of a parameter entity in some internal table rather than its actual name. (Just a guess, though. Could be something else.) Which parser are you using?

The thing is, I can't find the line that has the error. It think it must be one of the files included by office.dtd, but which one? A grep doesn't any such parameter entry. It sure would be nice if XOM reported both file and line number for errors in included files.

OK. Possibly I could add this, but it would help if I had a reproducible test case of the problem. If the document you're parsing is not private, could you send me a copy? If it is, could you possibly create a test case that demonstrates the problem? Doe sit occur with all OpenOffice documents or just this one?

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page