Searching for substitution groups
-
Is there a better way of finding substitution groups for an element in an XSD other than looking through all the other elements and checking the substitutionGroup attribute? Marc
Available for consulting and full time employment. Contact me. Interacx
-
Is there a better way of finding substitution groups for an element in an XSD other than looking through all the other elements and checking the substitutionGroup attribute? Marc
Available for consulting and full time employment. Contact me. Interacx
-
I guess I don't understand your problem because it sounds like you want to use an XPath query. I can't imagine you would not have considered that if it might be a solution.
led mike
led mike wrote:
guess I don't understand your problem because it sounds like you want to use an XPath query. I can't imagine you would not have considered that if it might be a solution.
Good point, the issue is more that I'm working with the XSD DOM and the elements that are substitution groups for the head element can be smeared across any number of imported schemas. However, that doesn't mean that I couldn't use an XPath query on each of the schemas. So...let me give that some thought! Marc
Available for consulting and full time employment. Contact me. Interacx
-
led mike wrote:
guess I don't understand your problem because it sounds like you want to use an XPath query. I can't imagine you would not have considered that if it might be a solution.
Good point, the issue is more that I'm working with the XSD DOM and the elements that are substitution groups for the head element can be smeared across any number of imported schemas. However, that doesn't mean that I couldn't use an XPath query on each of the schemas. So...let me give that some thought! Marc
Available for consulting and full time employment. Contact me. Interacx
Marc Clifton wrote:
can be smeared across any number of imported schemas
I've never worked with imported schemas yet. They are not accessible from the DOM object they are imported into? By accessible I mean using the XPath query with selectNodes().
led mike
-
Marc Clifton wrote:
can be smeared across any number of imported schemas
I've never worked with imported schemas yet. They are not accessible from the DOM object they are imported into? By accessible I mean using the XPath query with selectNodes().
led mike
led mike wrote:
By accessible I mean using the XPath query with selectNodes().
Not that I'm aware of, but I'll have to check. The imported schemas are not merged into a single XmlSchema instance--instead, you have to recurse through the Imports collection to manually find stuff, so I doubt XPath will do that either. Marc
Available for consulting and full time employment. Contact me. Interacx