This is a discussion on XML and white spaces within the XML and SOAP forums, part of the Web Development category; Does XML preserves white spaces or not?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, White spaces can be preserved in XML using its default xml:space attribute.. XML provides a built in attribute 'xml:space' that instructs the agent to preserve all white space. 'xml:space' is one of the few attributes that XML reserves for itself. This attribute is inherited by child elements from their root element where white space is declared. When declared, it must be given as an enumerated type whose only possible values are "default" and "preserve". <!ATTLIST poem xml:space (default|preserve) 'preserve'> "default" -> the applications applies the white-space only for this element. "preserve" -> the applications preserves all the white space. The rule for XML processors is that in the absence of a declaration that identifies the content model of an element, all white space is significant. |
| |||
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/xml-soap/3582-xml-white-spaces.html | |||
| Posted By | For | Type | Date |
| DiscussWeb IT Community - Technical Support and Technology Discussions | This thread | Refback | 09-01-2007 09:44 PM |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Removing multiple spaces from string | bluesky | C# Programming | 3 | 03-19-2008 06:17 AM |
| Trim Trailing and Leading Spaces using different databases | srikumar_l | Database Support | 0 | 12-05-2007 03:17 AM |
| Black Box & White box testing | prasath | Software Testing | 2 | 08-28-2007 07:12 AM |
| How can u test the white page | Shanthi | Software Testing | 0 | 07-07-2007 02:53 AM |
| White Box Testing | vadivelanvaidyanathan | Software Testing | 2 | 03-14-2007 05:27 AM |