OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   XML Schema (sequence) and MSXMLDOM question.

[ Lists Home | Date Index | Thread Index ]
  • To: <xml-dev@lists.xml.org>
  • Subject: XML Schema (sequence) and MSXMLDOM question.
  • From: "Rodrigo Pinho Pereira de Souza" <rpinho@fpf.br>
  • Date: Wed, 26 Nov 2003 14:07:58 -0400
  • Disposition-notification-to: "Rodrigo Pinho Pereira de Souza" <rpinho@fpf.br>
  • Importance: Normal



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: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:attribute name="ID" type="nsSDSGeneral:tID" use="required"/>

             <xs:attribute name="Description" type="string" use="optional"/>



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"/>




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?




Rodrigo Pinho Pereira de Souza



Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.538 / Virus Database: 333 - Release Date: 10/11/2003


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS