Re: use of XSD
- From: "Jurjen de Groot" <Jurjen.de.Groot@xxxxxxxxx>
- Date: Sun, 22 Oct 2006 08:55:28 +0200
Thanks Martin
I'll look into it tomorrow.
Jurjen.
"Martin Honnen" <mahotrash@xxxxxxxx> wrote in message
news:OATFMUG9GHA.3740@xxxxxxxxxxxxxxxxxxxxxxx
Jurjen de Groot wrote:
The type JaNeeType is defined as
<xsd:simpleType name="YesNoType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Y Yes" />
<xsd:enumeration value="N No" />
</xsd:restriction>
Is it possible to read the XSD into some kind of xml object and access
the simpleType enumerations to extract the code AND description
.NET 1.x has a schema object model (SOM) implementation with
XmlSchemaCollection
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemXmlSchemaXmlSchemaCollectionClassTopic.asp>
and XmlSchema
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemXmlSchemaXmlSchemaClassTopic.asp>
so you can indeed load a schema and then have an object model you can
navigate. But with the complexity of possible schema structures the
general navigation is also rather complex. Enumeration is just one
possible facet.
See
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconxsdschemaobjectmodelsom.asp>
for details about the SOM.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
.
- References:
- use of XSD
- From: Jurjen de Groot
- Re: use of XSD
- From: Martin Honnen
- use of XSD
- Prev by Date: XML Creating nodes
- Next by Date: Re: XML Creating nodes
- Previous by thread: Re: use of XSD
- Next by thread: Load DiffGram to String
- Index(es):
Relevant Pages
|