This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Microsoft XML > April 2007 > Partial xsd validation
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Partial xsd validation
|
|
| hhravn@gmail.com 2007-04-23, 6:16 pm |
| I am implementing a distributed application, where every incoming xml
document has the same header, but different content (in an element
named Data). This content contains XML of an unknown format. Is it
possible to validate that the header information is correct, without
checking the format of the Data element?
| |
| Martin Honnen 2007-04-23, 6:16 pm |
| hhravn@XXXXXXXXXX wrote:
> I am implementing a distributed application, where every incoming xml
> document has the same header, but different content (in an element
> named Data). This content contains XML of an unknown format. Is it
> possible to validate that the header information is correct, without
> checking the format of the Data element?
It is possible to achieve that by using xsd:any as that way you can
allow any element (in general or from a certain namespace) and set
validation to lax (validates if schema is found) or skip (does not
validate at all), see
<http://www.w3.org/TR/xmlschema-0/#any>
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|