Friday, 15 August 2014

xml - CDATA inside PCDATA -



xml - CDATA inside PCDATA -

i read text , didn't ubderstand it:

pcdata means parsed character data, in case declared element allowed have character info within of ,you might wondering if there way define element has cdata section in it, unparsed. , reply is, remember, cdata tag in fact parsed. it's text content within cdata section that's unparsed. there's no way say, it's cdata section. define #pcdata. , indicates elements can have parse carriage info within of it.

how can in other words? meant? pcdata - parsed character data cdata - (unparsed) character data

pcdata can parse tags. pcdata can parse cdata: pcdata understand cdata. , cdata leaves inner text is. cdata work in pcdata. right?

this

so there's no way say, it's cdata section. define #pcdata. , indicates elements can have parse carriage info within of it.

kill me. can't understand meaning.

thanks

i'm not 100% i'm answering question here because i'm not 100% question is.

the first thing should remember cdata is authorial tool makes entering markup cause problems parser easier.

for example, if wanted have para element contained text "children < 12 years , adults > 80 years old"

<para>children &lt; 12 years , adults &gt; 80 years old</para>

that's pcdata. bit tedious type. might want do:

<para><![cdata[children < 12 years , adults > 80 years old]]></para>

that's still pcdata have used cdata section avoid problematic text.

so, statements quoted right unclear. element content, #pcdata info type , cdata convention simplify authoring. <![cdata ... ]]> is parsed content not.

xml dtd cdata sgml pcdata

No comments:

Post a Comment