Results 1 to 1 of 1

Thread: XML: Schema giving warnings.

  1. #1

    Thread Starter
    Hyperactive Member Troy Lundin's Avatar
    Join Date
    May 2006
    Posts
    489

    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:
    1. <?xml version="1.0" encoding="us-ascii"?>
    2. <signaturelist xmlns="http://tempuri.org/Schema.xsd">
    3.   <signature id="0045" name="Castlevania: Circle of the Moon" editor="">
    4.     <sram index="0" len="11" match="44524143554C4120414742" />
    5.     <vba index="4" len="16" match="44524143554C41204147423141414D45" />
    6.   </signature>
    7.   <signature id="0113" name="Klonoa: Empire of Dreams" editor="">
    8.     <sram index="128" len="8" match="414F4E4F4C4B5F4B" />
    9.   </signature>
    10. </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.
    Attached Images Attached Images  
    Prefix has no suffix, but suffix has a prefix.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width