XML Tutorial/Introduction/PCDATA

Материал из Web эксперт
Перейти к: навигация, поиск

Whitespace in PCDATA

   <source lang="xml">

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.</source>