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. Space in XML

Space in XML

Scheduled Pinned Locked Moved XML / XSL
xml
4 Posts 4 Posters 13 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
    Hitu
    wrote on last edited by
    #1

    When a space is given in .xml file, the value is not passed & it is not displayed in the browser.

    M N M 3 Replies Last reply
    0
    • H Hitu

      When a space is given in .xml file, the value is not passed & it is not displayed in the browser.

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

      Do you mean a whitespace character? If you want to show that, rather use  .

      1 Reply Last reply
      0
      • H Hitu

        When a space is given in .xml file, the value is not passed & it is not displayed in the browser.

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        Can you provide an example. Where is the space character that it doesn't show up? Are you just opening the document, in say IE, or are you doing any processing of it?

        1 Reply Last reply
        0
        • H Hitu

          When a space is given in .xml file, the value is not passed & it is not displayed in the browser.

          M Offline
          M Offline
          Michael A Barnhart
          wrote on last edited by
          #4

          Depending on which version of MSXML you have whitespace defaults are different. In VC++ the following line will preserve the whitespaces if called prior to loading the file. hr = pXML->put_preserveWhiteSpace(VARIANT_TRUE); To be conscious that you are ignorant of the facts is a great step towards Knowledge. Benjamin Disraeli

          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