Hello
I have a program in C++ that
load one XML file, with his Schema File.
In schema file, I have this
definition.
<xs:complexType name="PlugInGroup">
<xs:sequence>
<xs:element ref="nsSDSGeneral:PlugIn" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="nsSDSGeneral:SDSMenuItem" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="nsSDSGeneral:PlugIn" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="ID" type="nsSDSGeneral:tID" use="required"/>
<xs:attribute name="Description" type="string" use="optional"/>
</xs:complexType>
I inserted the element PlugIn duplicated only to do not need a sequence in XML
File.
The XML File is :
<nsSDSGeneral:PlugInGroup ID="PIG_DECT" Description="Group containing PlugIns for DECT phones">
<nsSDSGeneral:SDSMenuItem ID="MI_EXTRAS_DECT"/>
<nsSDSGeneral:PlugIn ID="PI_PIM"/>
<nsSDSGeneral:SDSMenuItem ID="MI_EXTRAS_DECT"/>
<nsSDSGeneral:PlugIn ID="PI_SOUNDS"/>
<nsSDSGeneral:PlugIn ID="PI_WEB"/>
<nsSDSGeneral:SDSMenuItem ID="MI_EXTRAS_DECT"/>
</nsSDSGeneral:PlugInGroup>
In theory, the XML above, is
it ok? I think yes, and XMLSpy
load and validate this normally, but when I want to load this in MSXMLDOM, I get
a fail.
Any suggestions?
Thanks.
Rodrigo Pinho Pereira de Souza