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. adding a & in text and element

adding a & in text and element

Scheduled Pinned Locked Moved XML / XSL
help
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.
  • B Offline
    B Offline
    balakpn
    wrote on last edited by
    #1

    hi i want to add & in the element name and text it shows error how i can add pls suggest a solution i want like this <&Name>&Ram& with regards Balagurunathan.B

    C G 2 Replies Last reply
    0
    • B balakpn

      hi i want to add & in the element name and text it shows error how i can add pls suggest a solution i want like this <&Name>&Ram& with regards Balagurunathan.B

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

      & is what you need.

      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 )

      1 Reply Last reply
      0
      • B balakpn

        hi i want to add & in the element name and text it shows error how i can add pls suggest a solution i want like this <&Name>&Ram& with regards Balagurunathan.B

        G Offline
        G Offline
        George L Jackson
        wrote on last edited by
        #3

        You cannot use & or & in an element name. An element name has to begin with a letter or an underscore. -- modified at 9:45 Thursday 9th August, 2007

        "We make a living by what we get, we make a life by what we give." --Winston Churchill

        B 1 Reply Last reply
        0
        • G George L Jackson

          You cannot use & or & in an element name. An element name has to begin with a letter or an underscore. -- modified at 9:45 Thursday 9th August, 2007

          "We make a living by what we get, we make a life by what we give." --Winston Churchill

          B Offline
          B Offline
          balakpn
          wrote on last edited by
          #4

          ok then can we add it as inner text again it shows error on that case also

          with regards Balagurunathan.B

          G 1 Reply Last reply
          0
          • B balakpn

            ok then can we add it as inner text again it shows error on that case also

            with regards Balagurunathan.B

            G Offline
            G Offline
            George L Jackson
            wrote on last edited by
            #5

            It is also forbidden in other parts of the element name.

            "We make a living by what we get, we make a life by what we give." --Winston Churchill

            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