Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] XSD question & <xsd:any>

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Steve Loughran <steve.loughran AT gmail.com>
  • To: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] XSD question & <xsd:any>
  • Date: Mon, 9 May 2005 15:00:40 +0100

This isnt directly a XOM question; that's just the framework I'm using
to load my files, it just so happens that these files are being
rejected by the (XSD-validating) parser.

In a complex type, I have:
<any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>

It will happily skip over stuff in namespaces it doesnt have schemas
for, but it it is rejecting content in the default namespace. That is,
if I dont provide any xmlns="something" declaration for the content, I
am getting rejected.

How do I tweak the XSD or the parser to treat no-namespaced XML as if
it were any other bit of lax content to skip at validate time? Can I
do this?



  • [XOM-interest] XSD question & <xsd:any>, Steve Loughran, 05/09/2005

Archive powered by MHonArc 2.6.24.

Top of Page