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. xpath & namespace

xpath & namespace

Scheduled Pinned Locked Moved XML / XSL
xmlhelpquestiondatabase
4 Posts 3 Posters 2 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.
  • H Offline
    H Offline
    huikm
    wrote on last edited by
    #1

    i introduced a namespace into the XML document and all the Xpath construct did not work. It was working before i introduced the namespace. what is wrong? something 1 something 2 selectNodes(_bstr_t(_T("//TEST")); // working with namespace something 1 something 2 selectNodes(_bstr_t(_T("//TEST")); // error i added the namespace cos i am doing xml schema validation using MSXML4 which turned out to be ok. but with the xmlns..., all the xpath expressions failed. This is my first encountered with namespace in xml document appreciate any help advise. thanks meng

    S 1 Reply Last reply
    0
    • H huikm

      i introduced a namespace into the XML document and all the Xpath construct did not work. It was working before i introduced the namespace. what is wrong? something 1 something 2 selectNodes(_bstr_t(_T("//TEST")); // working with namespace something 1 something 2 selectNodes(_bstr_t(_T("//TEST")); // error i added the namespace cos i am doing xml schema validation using MSXML4 which turned out to be ok. but with the xmlns..., all the xpath expressions failed. This is my first encountered with namespace in xml document appreciate any help advise. thanks meng

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      You need to specify the namespace as well. Read this: *bighugemsaddr*/frlrfsystemxmlxmlnodeclassselectnodestopic1.asp[^]

      Shog9 ------

      And on the pedestal, these words appear: "My name is Ozymandias, King of Kings, Look on my Works, ye Mighty, and despair!" Nothing beside remains.

      A 1 Reply Last reply
      0
      • S Shog9 0

        You need to specify the namespace as well. Read this: *bighugemsaddr*/frlrfsystemxmlxmlnodeclassselectnodestopic1.asp[^]

        Shog9 ------

        And on the pedestal, these words appear: "My name is Ozymandias, King of Kings, Look on my Works, ye Mighty, and despair!" Nothing beside remains.

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        what is the equivalent for NamespaceManager for VC++?

        S 1 Reply Last reply
        0
        • A Anonymous

          what is the equivalent for NamespaceManager for VC++?

          S Offline
          S Offline
          Shog9 0
          wrote on last edited by
          #4

          IMXNamespaceManager, i think... that said, i've no idea how to use it. However, take a look at this: reallylongmslink/xml2nd_pro_v4_0tyr.asp[^]

          Shog9 ------

          And on the pedestal, these words appear: "My name is Ozymandias, King of Kings, Look on my Works, ye Mighty, and despair!" Nothing beside remains.

          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