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. C#
  4. XML Serialization question

XML Serialization question

Scheduled Pinned Locked Moved C#
questionxmljson
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.
  • S Offline
    S Offline
    Sean Cull
    wrote on last edited by
    #1

    Is it possible to save the contents of a Rich Text Box to an XML File, including bold text, italics, etc? If not, could someone suggest an alternative way to do it? Thanks in advance. -Sean

    H 1 Reply Last reply
    0
    • S Sean Cull

      Is it possible to save the contents of a Rich Text Box to an XML File, including bold text, italics, etc? If not, could someone suggest an alternative way to do it? Thanks in advance. -Sean

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Yes, but probably not like you're thinking. You could save the value of the RichTextBox.Rtf property in a CDATA section of an XML document, but it won't convert the RTF to XML like Word can do; for that, it takes a good filter. You could save the RTF, open it in Word, and save it as HTML (which is actually XHTML - or an XML schema that looks like HTML) from Word. Word 2003 can also save XML in a different schema than XHTML. There are articles here on CodeProject that cover such topics.

      Microsoft MVP, Visual C# My Articles

      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