Everything in XSD could be located by XPATH?

M

mavis

Firstly, is it possible to locate everything in xsd by XPATH?
for example,
xs:element[@name="person"]/xs:complexType/xs:sequence/xs:element[@name="firstname"]
.....

Is there any good ways to record the XPath info through traversing the
XSD file?

Thanks!
 
J

Joe Kesselman

mavis said:
Firstly, is it possible to locate everything in xsd by XPATH?

I'm not sure what you're asking. Schemas are themselves XML documents,
so you can process them with XML tools -- so, yes, you can run XPaths
against those documents. Of course it's up to you to figure out what
XPath to write to retrieve the information you want from the schema.

The obvious alternative is to find a parser that returns a structured
data model for the schema, then navigate that model.
Is there any good ways to record the XPath info through traversing the
XSD file?

Again, I'm not sure what question you're asking.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,002
Messages
2,570,261
Members
46,859
Latest member
VallieMcKe

Latest Threads

Top