Results 1 to 4 of 4

Thread: XSD: How do schemas point out errors?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member singularis's Avatar
    Join Date
    Nov 2006
    Location
    Over There!
    Posts
    372

    Unhappy XSD: How do schemas point out errors?

    I have edited simple.xml slightly and added another element (called "bad") that should result in the document being invalid. Yet the schema does not pick up on this.

    I was using Internet Explorer 7 to read the xml file. Any help would be good

    Contents of Simple.xsd (the schema):
    Code:
    <?xml version = "1.0" encoding = "UTF-8"?>
    <!--Generated by XML Authority. Conforms to w3c http://www.w3.org/2001/XMLSchema-->
    <xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema">
    	<xsd:element name = "vehicles">
    		<xsd:complexType>
    			<xsd:sequence>
    				<xsd:element name = "nickname" type = "xsd:string" maxOccurs = "unbounded"/>
    			</xsd:sequence>
    		</xsd:complexType>
    	</xsd:element>
    </xsd:schema>
    Attached Files Attached Files
    Last edited by singularis; Jul 12th, 2007 at 10:09 AM.
    If what I said was helpful, give me rep!

    My Complete Games: -- 2D Zone (Space Shooter game) || _2D Zone 2_ || Ninja Blob (2D platformer) || Dren (Co-op up to 4 player base defence game)

    My Projects: -- The Dread Engine (2D VB game Engine) || A* Path Finding


    An excellent site for learning DirectX7, 8 & 9 (for VB6, C# & VB.net) would be: directx4vb.vbgamer.com --- For my projects and games see: pieper.freehostia.com

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