all groups > dotnet xml > april 2007 >
You're in the

dotnet xml

group:

Can I extract the xpath to all elements within a XSD schema?


Can I extract the xpath to all elements within a XSD schema? Maxwell
4/16/2007 7:32:01 PM
dotnet xml: Hi,

Is there any tool or API call that extracts the xpath for all elements
within an XSD schema?

Here are some examples:


Order/OrdrItems/ProductID
Order/Customer/Address

Any help would be appreciated,
Max
Re: Can I extract the xpath to all elements within a XSD schema? Martin Honnen
4/17/2007 12:00:00 AM
[quoted text, click to view]

I don't think the .NET framework provides such an API. On the other hand
it provides a SOM (schema object model) so you can programmatically
traverse schemas and extract information. See
<http://blogs.msdn.com/stan_kitsis/archive/2005/08/06/448572.aspx>
for an example for .NET 2.0 using XmlSchema/XmlSchemaSet.


--

Martin Honnen --- MVP XML
RE: Can I extract the xpath to all elements within a XSD schema? v-wywang NO[at]SPAM online.microsoft.com
4/18/2007 12:00:00 AM
Hi Max,
Thanks for Martin's information.

There is no such API in .net framework can provide a feature to extract the
xpath for all elements within Schema file. However, as Martin said, you may
traverse xmlSchema object to achieve what you need. Do you have met any
further issue on this?

Have a great day,
Sincerely,
Wen Yuan
Microsoft Online Community Support
RE: Can I extract the xpath to all elements within a XSD schema? v-wywang NO[at]SPAM online.microsoft.com
4/23/2007 12:00:00 AM
Hello Max,

I haven't heard from you two days. I just want to check the issue status.
Do you have met any further issue on this? If there is anything we can help
with, please feel free to post it in the newsgroup and we will follow up.

Sincerely,
Wen Yuan
Microsoft Online Community Support
AddThis Social Bookmark Button