xml:space

Author Topic: xml:space  (Read 426 times)

Offline beingchinmayTopic starter

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 0
  • Posts: 56
  • 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
1766 Views
Last post 12-10-2011, 05:27:53
by electra
1 Replies
1339 Views
Last post 12-10-2011, 05:24:05
by electra
1 Replies
1173 Views
Last post 01-21-2012, 16:43:54
by hostaddonltd
0 Replies
1341 Views
Last post 09-08-2015, 02:28:00
by dexterousweb
2 Replies
1748 Views
Last post 07-28-2016, 05:24:42
by Franburgs