Hi,
Why does this not work?
-------------------------------------
<?xml version="1.0"?>
<xs:schema xmlns:xs=" targetNamespace = "test" elementFormDefault = "qualified">
<xs:element name="datafile"></xs:element>
<xs:element name="hi" maxOccurs="unbounded"/>
</xs:schema>
-------------------------------------
But if I leave out the 'maxOccurs="unbounded"' it works fine.
I am validating a xml file against the scheme using the validateOnParse property of the MSXML2.DOMDocument.4.0 object. the returned error says that the root element is not defined (which it is) - so that is not very informative...
Any help appreciated Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
Why does this not work?
-------------------------------------
<?xml version="1.0"?>
<xs:schema xmlns:xs=" targetNamespace = "test" elementFormDefault = "qualified">
<xs:element name="datafile"></xs:element>
<xs:element name="hi" maxOccurs="unbounded"/>
</xs:schema>
-------------------------------------
But if I leave out the 'maxOccurs="unbounded"' it works fine.
I am validating a xml file against the scheme using the validateOnParse property of the MSXML2.DOMDocument.4.0 object. the returned error says that the root element is not defined (which it is) - so that is not very informative...
Any help appreciated Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'