[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Validating XML Using XSD...

Subject: Validating XML Using XSD...
From: "XSL List" <xsl-list@xxxxxxxxxxxxx>
Date: Mon, 18 Nov 2002 04:13:48 -0000
xml using xsd
Hi All,
I  a newbie to validation of XML via XSD, and I am trying to write a Schema to validate some XML that I am using as part of an application that Iam building.  I have managed to get the XSD to validate the XML successfully.  I am now stuck at a particular point...

I need only to make sure that certain elements and attributes exist within the XML.  I need the XML to be allowed to contain elements/attributes that are not specified within the XSD schema.  Can anyone help me out with this.

An example of what I mean...

I need a schema that would ensure that the XML contained ALL of the following...

	<server name="pdc"></server>
	<server name="bdc"></server>

However, I need that same schema to allow the following...

	<server name="pdc" type="exchange"></server>
	<server name="bdc" type="www"></server>

...here the type attribute has been added, essentially I need the schema to ignore it.

Thanks in anticipation.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.