xml:space

Author Topic: xml:space  (Read 600 times)

Offline beingchinmayTopic starter

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 1
  • Posts: 73
  • Karma: 0
  • Gender: Male
  • I am Chinmay
    • Fat Cutter
xml:space
« on: 08-22-2016, 04:27:05 »
This attribute specifies to an application how it should handle whitespace. The valid values are preserve and default. When set to default, the application handles whitespace as it normally does. A value of preserve instructs the application that it must preserve all whitespace within the context of the element on which the attribute is set. For example:

Quote
<Description xml:space="preserve">
<a>This</a>
<b>is</b>
<c>the</c>
<d>description</d>
</Description>

The value of preserve should instruct the application to preserve the whitespace within the description content. If this were set to default, the application may or may not preserve whitespace. It would depend upon its default behavior.


 

Related Topics

  Subject / Started by Replies Last post
1 Replies
1495 Views
Last post 12-10-2011, 05:24:05
by electra
1 Replies
1334 Views
Last post 01-21-2012, 16:43:54
by hostaddonltd
2 Replies
2104 Views
Last post 07-28-2016, 05:24:42
by Franburgs
4 Replies
1900 Views
Last post 04-25-2017, 06:38:36
by Herstin
4 Replies
1073 Views
Last post 07-21-2017, 05:44:26
by Chersont