91-9990449935 0120-4256464 |
CDATA PCDATACDATACDATA: (Unparsed Character data): CDATA contains the text which is not parsed further in an XML document. Tags inside the CDATA text are not treated as markup and entities will not be expanded. Let's take an example for CDATA: Test it NowIn the above CDATA example, CDATA is used just after the element employee to make the data/text unparsed, so it will give the value of employee: <firstname>vimal</firstname><lastname>jaiswal</lastname><email>vimal@trainingtrains.com</email> PCDATAPCDATA: (Parsed Character Data): XML parsers are used to parse all the text in an XML document. PCDATA stands for Parsed Character data. PCDATA is the text that will be parsed by a parser. Tags inside the PCDATA will be treated as markup and entities will be expanded. In other words you can say that a parsed character data means the XML parser examine the data and ensure that it doesn't content entity if it contains that will be replaced. Let's take an example: Test it NowIn the above example, the employee element contains 3 more elements 'firstname', 'lastname', and 'email', so it parses further to get the data/text of firstname, lastname and email to give the value of employee as: vimal jaiswal vimal@trainingtrains.com
Next TopicXML Parsers
|