XML validation of single value without entire XML document
- From: "Bardo" <bryn@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Nov 2006 21:46:01 +1100
Hi all,
Does anyone know if it is possible, and if so how, to perform validation of
a simple non XML string against certain XSD restrictions, without having the
entire XML document to validate against the schema.
To elaborate -
- Within XSD certain restrictions are defined for a particular
element/attribute, such as datatype, minlength, maxlength, valid enumeration
values etc.
Is it at all possible to validate a simple string value against these
restrictions defined within the schema.
I.e. I do not have the entire XML document that matches the schema. I do not
even have any XML at all - I simply have a string value which represents one
of the elements' values in the schema. I would like to utilise the power of
XSD to validate the value, rather than writing my own code to check the
datatype, length, allowed values etc.
Any suggestions appreciated!
Thanks,
Bardo
.
- Follow-Ups:
- Re: XML validation of single value without entire XML document
- From: Martin Honnen
- Re: XML validation of single value without entire XML document
- Prev by Date: Re: Converting mysql query result to xml
- Next by Date: Re: XPath 2.0
- Previous by thread: RE: Root element in XML designer and .xsd'd
- Next by thread: Re: XML validation of single value without entire XML document
- Index(es):
Relevant Pages
|