Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XSD Schema and Validation problems

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: peter murray-rust <pm286 AT cam.ac.uk>
  • To: Elliotte Harold <elharo AT metalab.unc.edu>
  • Cc: 'xom-interest' <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] XSD Schema and Validation problems
  • Date: Mon, 19 Dec 2005 19:31:33 +0000

At 13:26 19/12/2005, Elliotte Harold wrote:
peter murray-rust wrote:

Under XOM I have at least two problems:
(A) the *.xml files with schema references fail to parse under XOM even if no validation is called for. a typical message is:
nu.xom.ParsingException: Illegal path character
which appears to have a significant whitespace character if I write it as:
[nu.xom.ParsingException: Illegal path character ] in [C:\pmr\schema23\examples\xsd\countType1.xml]
None of my files have whitespace characters in their names but temporary filenames might have. I can remove this error simply by removing the xsi:schemaLocation attribute.

This one's hard to debug remotely, but I'm reasonably confident that it has something to do with relative URLs and Windows file paths (which aren't URLs.) If you can drop ti down to a self-contained reproducible test case, I could investigate further. It's probably not a XOM bug as such, but if the error message is unclear and unhelpful, I might be able to improve that.

Thanks - the use of File() instead of FileReader() has solved half the problem. The other appears to be related to the use of
public Nodes makeAttribute(...)
in a subclassed NodeFactory - this currently makes little sense but I am seeing if I can isolate it.

P.


Peter Murray-Rust
Unilever Centre for Molecular Sciences Informatics
University of Cambridge,
Lensfield Road, Cambridge CB2 1EW, UK
+44-1223-763069




Archive powered by MHonArc 2.6.24.

Top of Page