在XML中嵌入两个标记之间的特殊标记

我在XML中嵌入HTML标签有很多错误。 像这样:
 <?xml version="1.0" encoding="UTF-8"?>
 <main>     
    <note>
        <category>computers</category>
        <id>1</id> 
            <price>47072.00</price>
        <description>
                <p>Warranty - 24<br />Product model code - N150
                Plus&nbsp;<br />            
            </description>      
   </note> 
</main>
我需要在代码之间插入此代码...以使用PHP读取XML文件 。 像这样:
<description>
       <![CDATA[<html
        ...HTML CODE IS HERE

        ]]>
</description>
    
已邀请:
使用
file_get_contents()
打开xml文件作为数组。     

要回复问题请先登录注册