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 value

xml value

Scheduled Pinned Locked Moved XML / XSL
helpxml
6 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.
  • T Offline
    T Offline
    toink toink
    wrote on last edited by
    #1

    why do i get an error when trying to insert "PCI\VEN_1106&DEV_3038&SUBSYS_30381849&REV_81\3&267A616A&0&80" as value of my xml element... i'm new to xml. pls help. thanks

    C N 2 Replies Last reply
    0
    • T toink toink

      why do i get an error when trying to insert "PCI\VEN_1106&DEV_3038&SUBSYS_30381849&REV_81\3&267A616A&0&80" as value of my xml element... i'm new to xml. pls help. thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      What's the error you get ? How are you inserting it ?

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      T 1 Reply Last reply
      0
      • C Christian Graus

        What's the error you get ? How are you inserting it ?

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        T Offline
        T Offline
        toink toink
        wrote on last edited by
        #3

        This is the error message "An error occurred while parsing EntityName. Line 1, position 160." This is the code upon insertion: elmXML = docXMLFile.CreateElement(element); elmXML.InnerXml = strNewLine.ToString(); docXMLFile.DocumentElement.AppendChild(elmXML) the error occurs on the second line.

        1 Reply Last reply
        0
        • T toink toink

          why do i get an error when trying to insert "PCI\VEN_1106&DEV_3038&SUBSYS_30381849&REV_81\3&267A616A&0&80" as value of my xml element... i'm new to xml. pls help. thanks

          N Offline
          N Offline
          Nouman Bhatti
          wrote on last edited by
          #4

          i think it's due to the & sign in your string.

          T 1 Reply Last reply
          0
          • N Nouman Bhatti

            i think it's due to the & sign in your string.

            T Offline
            T Offline
            toink toink
            wrote on last edited by
            #5

            yes, i guess so too.. if it has the single "\", it won't accept the string? so how will i go about it?

            N 1 Reply Last reply
            0
            • T toink toink

              yes, i guess so too.. if it has the single "\", it won't accept the string? so how will i go about it?

              N Offline
              N Offline
              Nouman Bhatti
              wrote on last edited by
              #6

              u have to replace & with sth. that is allowed in plain html i think u should replace & with & for more info. http://www.html-reference.com/Escape.htm

              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