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. can i format xml file, suggestion please ?

can i format xml file, suggestion please ?

Scheduled Pinned Locked Moved XML / XSL
csharpdatabasexmlquestion
3 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.
  • L Offline
    L Offline
    lazy_dude
    wrote on last edited by
    #1

    I have created a program using vb.net which use xml database. I need to display the text as formatted like bold letter, italics, etc. Can it be done. this character gives a newline, but I need to display my characters/words as bold, italics, etc. Is there anything I can do to display them as I desired. Any suggestion would be highly appreciated. Thank you.

    A 1 Reply Last reply
    0
    • L lazy_dude

      I have created a program using vb.net which use xml database. I need to display the text as formatted like bold letter, italics, etc. Can it be done. this character gives a newline, but I need to display my characters/words as bold, italics, etc. Is there anything I can do to display them as I desired. Any suggestion would be highly appreciated. Thank you.

      A Offline
      A Offline
      annathor
      wrote on last edited by
      #2

      you could add the font and display properties of a string as a attribute in the xml tag, then parse it and set the font properties of the control that displays the text according to the data in the xml-attributes, this is based on a wild guess on how you display the text, since you don't mention how you load and display the xml file, do you load it in a datatable and uses a datagridview to display it, do you parse it manualy with the System.xml namespace and display the text in a listview or what?

      L 1 Reply Last reply
      0
      • A annathor

        you could add the font and display properties of a string as a attribute in the xml tag, then parse it and set the font properties of the control that displays the text according to the data in the xml-attributes, this is based on a wild guess on how you display the text, since you don't mention how you load and display the xml file, do you load it in a datatable and uses a datagridview to display it, do you parse it manualy with the System.xml namespace and display the text in a listview or what?

        L Offline
        L Offline
        lazy_dude
        wrote on last edited by
        #3

        My xml code is as below : <?xml version="1.0" encoding="utf-16"?> <List> <File Thumal="jukebox" Awmzia="jukebox Thingrem zai thei" /> </List> The newline character I can make using but I want to display some of my word as italic, bold, etc. for example if I want to display jukebox as bold, or italic how do i do that. Would be very grateful if anyone lend me a hand here. Thank you.

        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