1 Attachment(s)
XML: Schema giving warnings.
I am using VS 2005 to create a schema. I have the schema set up like the attached image. I then create a xml file like so:
xml Code:
<?xml version="1.0" encoding="us-ascii"?>
<signaturelist xmlns="http://tempuri.org/Schema.xsd">
<signature id="0045" name="Castlevania: Circle of the Moon" editor="">
<sram index="0" len="11" match="44524143554C4120414742" />
<vba index="4" len="16" match="44524143554C41204147423141414D45" />
</signature>
<signature id="0113" name="Klonoa: Empire of Dreams" editor="">
<sram index="128" len="8" match="414F4E4F4C4B5F4B" />
</signature>
</signaturelist>
The second signature element is underlined and the message reads:
The element 'signaturelist' in namespace 'http://tempuri.org/Schema.xsd' has invalid child element 'signature' in namespace 'http://tempuri.org/Schema.xsd'.
Obviously, I am doing this wrong. Basically, the signaturelist element will have multiple signature elements in it, just like the above example.
I watched some videos about xml schemas, but they didn't get into this.
Thanks, Troy.