[VW 7.7+] Parse XSD file fails because of ID attribute

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[VW 7.7+] Parse XSD file fails because of ID attribute

Dimitri Gheysels
I've searched this forum and found some topics concerning this subject (XML validation with XSD), but unfortunately, these topics were already a bit outdated.

I'm trying to validate a XML file with a XSD using the SchemaHandler class from the XSchema package.  Firstly, I create a SchemaHandler object to parse my schema-file:

The parsing fails because the XSD file contains a ID-attribute in the root-element.  The error I get is: 'Schema: Attribute id not recognized'
When I remove this ID-attribute, the validation succeeds.

<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="someIdentification" xmlns:xs="http://www.w3.org/2001/XMLSchema">

Is this a known issue in VisualWorks or is there any workaround for this (apart from removing this attribute) ?
Maybe do there exist other, better packages for XML processing?

Thanks.