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 with special characters

XML with special characters

Scheduled Pinned Locked Moved XML / XSL
xmlhelpquestion
5 Posts 3 Posters 16 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.
  • S Offline
    S Offline
    Stefan Spenz
    wrote on last edited by
    #1

    Hi all, I'm having problems displaying a '&' in an XML tag. dssdsd&sdsdsd When I run this on a XSL Stylesheet, I get the following error: Ein Semikolon wurde erwartet. Fehler beim Bearbeiten der Ressource 'file:///C:/WINNT/SM.XML'. Zeile 33, Position 29 Semicolon expected. Are there any special handlings for characters like these? Thx Stefan

    M S 2 Replies Last reply
    0
    • S Stefan Spenz

      Hi all, I'm having problems displaying a '&' in an XML tag. dssdsd&sdsdsd When I run this on a XSL Stylesheet, I get the following error: Ein Semikolon wurde erwartet. Fehler beim Bearbeiten der Ressource 'file:///C:/WINNT/SM.XML'. Zeile 33, Position 29 Semicolon expected. Are there any special handlings for characters like these? Thx Stefan

      M Offline
      M Offline
      MS le Roux
      wrote on last edited by
      #2

      Try & or & if you want to show an & character in your output.

      S 1 Reply Last reply
      0
      • M MS le Roux

        Try & or & if you want to show an & character in your output.

        S Offline
        S Offline
        Stefan Spenz
        wrote on last edited by
        #3

        MarSCoZa wrote: Try & or & if you want to show an & character in your output. Hi, thanks for your answer. Could you please provide all sequences for all the five special characters (I think its five) because I don't know where to look for on the web. Thx a lot! Stefan

        M 1 Reply Last reply
        0
        • S Stefan Spenz

          MarSCoZa wrote: Try & or & if you want to show an & character in your output. Hi, thanks for your answer. Could you please provide all sequences for all the five special characters (I think its five) because I don't know where to look for on the web. Thx a lot! Stefan

          M Offline
          M Offline
          MS le Roux
          wrote on last edited by
          #4

          HTML special characters (Be aware that in XSLT,   is not supported, you have to use   instead.)

          1 Reply Last reply
          0
          • S Stefan Spenz

            Hi all, I'm having problems displaying a '&' in an XML tag. dssdsd&sdsdsd When I run this on a XSL Stylesheet, I get the following error: Ein Semikolon wurde erwartet. Fehler beim Bearbeiten der Ressource 'file:///C:/WINNT/SM.XML'. Zeile 33, Position 29 Semicolon expected. Are there any special handlings for characters like these? Thx Stefan

            S Offline
            S Offline
            SimonS
            wrote on last edited by
            #5

            You might want to take a look at the W3C's Blueberry spec on character sets in XML. Cheers, Simon "Every good work of software starts by scratching a developer's personal itch.", Eric S. Raymond

            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