Skip to Content.
Sympa Menu

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

xom-interest AT

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: peter murray-rust <pm286 AT>
  • To: Elliotte Harold <elharo AT>
  • Cc: 'xom-interest' <xom-interest AT>
  • 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.


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

Archive powered by MHonArc 2.6.24.

Top of Page