[xsd-users] Element '...' should be un-qualified??

Azadeh Omrani a.omrani at gmail.com
Sun Nov 30 03:49:00 EST 2008


Hi,
Thanks for your previous helpful replies Boris,

I have a schema file like this:

esg.xsd
<xsd:schema targetNamespace="urn:dvb:ipdc:esg:2005"
xmlns="urn:dvb:ipdc:esg:2005"
  xmlns:mpeg7="urn:mpeg:mpeg7:schema:2001"
  xmlns:tva="urn:tva:metadata:2005"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:import namespace="urn:mpeg:mpeg7:schema:2001"
schemaLocation="mpeg.xsd" />
  <xsd:import namespace="urn:tva:metadata:2005" schemaLocation="tva.xsd" />
  <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="xml.xsd" />


  <xsd:element name="ESGMain" type="ESGMainType"/>
  <xsd:complexType name="ESGMainType">
    <xsd:sequence>
      <xsd:element name="CopyrightNotice" type="xsd:string" minOccurs="0"/>
      <xsd:element name="ClassificationSchemeTable"
type="tva:ClassificationSchemeTableType"
      minOccurs="0"/>
      <xsd:element name="ESG" type="ESGType" minOccurs="0"/>
    </xsd:sequence>
  </xsd:complexType>
:
:
:

the xml instance file is like this:

service.xml
<ESGMain xsi:schemaLocation="urn:dvb:ipdc:esg:2005 esg.xsd"
xmlns="urn:dvb:ipdc:esg:2005" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:tva="urn:tva:metadata:2005"
xmlns:mpeg7="urn:mpeg:mpeg7:schema:2001">
<ESG>
<ServiceTable>
    <Service serviceID="cbms://lambdastream.com/service/77"
freeToAir="true">
        <ServiceName xml:lang="en">Radio Javan</ServiceName>
        <ServiceNumber>1</ServiceNumber>
        <ServiceLogo>
            <mpeg7:TitleImage>
                <mpeg7:MediaUri>cbms://lambdastream.com/mediatitle/109
</mpeg7:MediaUri>
            </mpeg7:TitleImage>
        </ServiceLogo>
:
:
:

I used the Namespcae map "urn:dvb:ipdc:esg:2005=esg"

Why do you think I get the following  runtime error message (in
disgnostics_):
 "Element 'ESG' should be un-qualified"
and for all the other elements in the TagretNamespace too...

And another question: where can I find the "info" property about each error
message?

Thank you so much
Azadeh



More information about the xsd-users mailing list