and it s'd hopefully work. BTW, i guess PCDATA and CDATA are 2 different things. PCDATA is used in a DTD to specify text content and is used with elements there you w'd probably have <number> <![CDATA[<greeting>1234&5</greeting>]]> </number>

I think that the parser will choke on the bare & because even #CDATA allows character replacement. This is why the 5 pre-defined character entities: &, < > " &apost; If you use & instead of the &, should work okay. Hope that helps.

Hi, I don't clearly understand. The attribute type of "number" is CDATA and the value for this in xml document is "343&43". Why is it saying the document is not valid. The parser should parse this CDATA value...right? Please explain in detail. Thanks Shoba

Shoba Ramachandran

Ranch Hand

Posts: 68

posted 18 years ago

I'm sorry..correction. "The parser should not parse this CDATA value" Thanks Shoba

Hello Shoba, Any attribute declared of type CDATA just denotes string of characters. Only CDATA sections will not be parsed which is declared as given below <![CDATA[Nothing between the opening and closing tag will be parsed]]> Hope this helps Regards, Deepti.

Shoba Ramachandran

Ranch Hand

Posts: 68

posted 18 years ago

Hi Deepti, Dan and Karthik Thanks for your reply. Now I understand only text within "CDATA Section" will not be parsed. Thanks Shoba