Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Searching for substitution groups

Searching for substitution groups

Scheduled Pinned Locked Moved XML / XSL
comalgorithmsquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marc Clifton
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • M Marc Clifton

      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

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      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

      M 1 Reply Last reply
      0
      • L led mike

        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

        M Offline
        M Offline
        Marc Clifton
        wrote on last edited by
        #3

        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

        L 1 Reply Last reply
        0
        • M Marc Clifton

          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

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          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

          M 1 Reply Last reply
          0
          • L 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

            M Offline
            M Offline
            Marc Clifton
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups