开发者

Embed special tags inside XML between two tags

I have a lot of wrongs embedded HTML tags inside XML. like this:

 <?xml version="1.0" encoding="UTF-8"?>
 <main>     
    <note>
        <category>computers</category&开发者_如何学JAVAgt;
        <id>1</id> 
            <price>47072.00</price>
        <description>
                <p>Warranty - 24<br />Product model code - N150
                Plus&nbsp;<br />            
            </description>      
   </note> 
</main>

I need to insert between tags this code..to read the XML file using PHP .

like this:

<description>
       <![CDATA[<html
        ...HTML CODE IS HERE

        ]]>
</description>


use file_get_contents() to open xml file as array.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜