What is a simple way to parse this specific xml using php? -



What is a simple way to parse this specific xml using php? -

whay way ( native way works in both php 4 , 5 ) extract value xml string

<root> <node1> <![cdata[the-text]]> </node1> </root>

i wish extract the-text content.

you can utilize simple xml 3rd parameter parse cdata text:

look there: http://www.vijayjoshi.org/2009/09/22/quick-php-tip-how-to-parse-cdata-sections-using-simplexml/

php xml dom

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -