Can someone tell me how to create xpath representations of the field definitions in an xsd file? I would like to somehow use the MS XML parser to analze the xsd as an xml file and produce a set of xpath statments that represent the data fields described by the xsd. I will appreciate any help. Thanks, Keith
keithb wrote: > Can someone tell me how to create xpath representations of the field > definitions in an xsd file? I would like to somehow use the MS XML parser > to analze the xsd as an xml file and produce a set of xpath statments that > represent the data fields described by the xsd. I will appreciate any > help. Not really, because XPath only addresses the location of (path to) or manipulation of a node in an XML document: it has no inherent knowledge of what data type that node is. But you could certainly use XPath to describe the location of a declaration of an element or attribute in your Schema, bearing in mind that there is no such thing as The One True XPath to any given node; there is an infinity of them, depending on where you start and what you want the XPath to do. Or have I misunderstood what you want? ///Peter -- XML FAQ: http://xml.silmaril.ie/