如何从CDATA中提取数据

1 php xml cdata

我从XML中提取数据,一些标签以这种方式在CDATA中包含数据

<description><![CDATA[Changes (as compared to 8.17) include:
Features:
    * Added a &#8216;Schema Optimizer&#8217; feature. Based on &#8220;procedure analyse()&#8221; it will propose alterations to data types for a table based on analysis on what data are stored in the table. The feature is available from INFO tab/HTML mode.  Refer to documentation for details.
    * A table can now be added [...]]]>
</description>
Run Code Online (Sandbox Code Playgroud)

我已经在使用preq_match从描述标签中提取数据.那么如何从CDATA中提取数据?

Pav*_*aev 7

无论语言如何,都不要使用正则表达式来解析XML - 你几乎肯定会弄错它.使用XML解析器.