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. Open Text in XML [modified]

Open Text in XML [modified]

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

    Hi How can i include a formatted text field inside an xml document? ie:

    < Paragraph>
    <Color>Red</Color>
    <Font>WingDings</Font>
    <Text> this is the text & it needs to be able to hold all characters.
    Formatting Info needs to
    Be maintaind. So do things like this:
    $1.56 < $2.25 & so on...
    <Text
    </Paragraph>

    I've been mudling around with XmlSerializer but XmlSerializer.Deserialize dies on & and < ect. and looses formating. -- modified at 17:13 Friday 22nd September, 2006

    Ronald Hahn, CNT - Computer Engineering Technologist New Technologies Analyst HahnTech Affiliated With Code Constructors Edmonton, Alberta, Canada Email: rhahn82@telus.net

    L 1 Reply Last reply
    0
    • H HahnTech

      Hi How can i include a formatted text field inside an xml document? ie:

      < Paragraph>
      <Color>Red</Color>
      <Font>WingDings</Font>
      <Text> this is the text & it needs to be able to hold all characters.
      Formatting Info needs to
      Be maintaind. So do things like this:
      $1.56 < $2.25 & so on...
      <Text
      </Paragraph>

      I've been mudling around with XmlSerializer but XmlSerializer.Deserialize dies on & and < ect. and looses formating. -- modified at 17:13 Friday 22nd September, 2006

      Ronald Hahn, CNT - Computer Engineering Technologist New Technologies Analyst HahnTech Affiliated With Code Constructors Edmonton, Alberta, Canada Email: rhahn82@telus.net

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

      You can: 1) Use a CData Section although even then there is the ending "]]" sequence that the data must not contain. 2) Encode the data like in Base64.

      led mike

      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