xml:space

Author Topic: xml:space  (Read 1138 times)

Offline beingchinmayTopic starter

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 1
  • Posts: 73
  • Karma: 0
  • Gender: Male
  • I am Chinmay
    • Modular Kitchen Designer
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
2122 Views
Last post 01-21-2012, 16:43:54
by hostaddonltd
4 Replies
3172 Views
Last post 04-25-2017, 06:38:36
by Herstin
4 Replies
3311 Views
Last post 07-21-2017, 05:44:26
by Chersont
0 Replies
600 Views
Last post 12-06-2017, 01:28:52
by xiaolanzhuji
0 Replies
689 Views
Last post 01-11-2018, 02:25:16
by xiaolanzhuji