Whitespace in PCDATA : PCDATA « Introduction « XML Tutorial

Home
XML Tutorial
1.Introduction
2.Namespace
3.XML Schema
4.XPath
5.XSLT stylesheet
XML Tutorial » Introduction » PCDATA 
1.5.1.Whitespace in PCDATA
Whitespace includes the space character, new lines, and tabs. 
Whitespace is used to separate words to make text more readable. 
In XML, no whitespace stripping takes place for PCDATA. 

<Tag>This is a paragraph. 
this is a test.</Tag> 

the PCDATA is 

This is a paragraph. 
this is a test. 


XML parsers change all new lines to a single linefeed character before processing.
1.5.PCDATA
1.5.1.Whitespace in PCDATA
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.