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. XML from file with special letters

XML from file with special letters

Scheduled Pinned Locked Moved XML / XSL
xmlquestion
5 Posts 3 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.
  • G Offline
    G Offline
    gruberdominik
    wrote on last edited by
    #1

    Hello, I got the following in my XML Settings file: I want to read the value of the capture device from the xml file into a string variable. But due to the "&" the value = "...." doesnt seem to be a valid string. Is there a way to handle this? thx in advance, best regards dominik

    M 1 Reply Last reply
    0
    • G gruberdominik

      Hello, I got the following in my XML Settings file: I want to read the value of the capture device from the xml file into a string variable. But due to the "&" the value = "...." doesnt seem to be a valid string. Is there a way to handle this? thx in advance, best regards dominik

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      & has to be escaped as &

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

      L G 2 Replies Last reply
      0
      • M Michael Dunn

        & has to be escaped as &

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

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

        It's a good thing he came here to find that out. It's not like there is a freely available documented standard on the internet that contains that information...    wait :doh:

        1 Reply Last reply
        0
        • M Michael Dunn

          & has to be escaped as &

          --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

          G Offline
          G Offline
          gruberdominik
          wrote on last edited by
          #4

          Thanks for your answer! But is there a way to get a valid string without manually editing the original string and replacing every & with &? regards Dominik -- modified at 4:29 Friday 27th July, 2007

          M 1 Reply Last reply
          0
          • G gruberdominik

            Thanks for your answer! But is there a way to get a valid string without manually editing the original string and replacing every & with &? regards Dominik -- modified at 4:29 Friday 27th July, 2007

            M Offline
            M Offline
            Michael Dunn
            wrote on last edited by
            #5

            No because having an unescaped & is what makes it invalid XML.

            --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

            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