Re: Everything in XSD could be located by XPATH?



mavis wrote:
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.


--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
.



Relevant Pages

  • Re: XML Schema: inheritance with variable order of childs
    ... And the human editors of the xml files are ... If your editors are techies, ... XML documents, and try to design a 'loose' schema for their ... I mean using a more powerful schema definition language. ...
    (comp.text.xml)
  • XmlValidatingReader memory behaviour
    ... I need to validate a number of different XML documents against the same ... but the behaviour of XmlValidatingReader seems to make this very ... schema and then have it process multiple XML documents; ... schema set up that's expensive in memory terms. ...
    (microsoft.public.dotnet.xml)
  • Re: Bulk Load schema problems
    ... race and a relationship between race and pilot_results ... "Luciano Pagliarini" wrote in ... >> using xml bulk load and defining xsd schema. ... >> for 500 xml documents about 50kb each one, ...
    (microsoft.public.sqlserver.xml)
  • Re: XmlValidatingReader memory behaviour
    ... schema collection with multiple XmlValidatingReaders that are created over ... > I need to validate a number of different XML documents against the same ... but the behaviour of XmlValidatingReader seems to make this very ... > schema and then have it process multiple XML documents; ...
    (microsoft.public.dotnet.xml)
  • Re: XPATH generation for schema
    ... > Bart Torbert wrote: ... >> are in the documentation with those derived from the schema. ... I have an XML schema defined. ... The schema structure dictates what these XPATHs will be. ...
    (microsoft.public.dotnet.xml)