How to insert HTML content in XML document?
Using CDATA tags you can enter HTML content in XML document.
Syntax:
Example:
Using CDATA tags you can enter HTML content in XML document.
Syntax:
<![CDATA[
<!-- html coding --->
]]>
Example:
<details>
<pages>
<page_id>1</page_id>
<page_code>aboutus</page_code>
<page_title>About Us</page_title>
<page_desc>
<![CDATA[<html>
<head>
<script/>
<head>
<body>
<p>para 1</p>
<p>para 2</p>
<p>para 3</p>
</body>
</html>
]]>
</page_desc>
</pages>
</details>
0 comments:
Post a Comment