How to get values inside <![CDATA[values]] > using php DOM?

前端 未结 5 1920
感动是毒
感动是毒 2020-12-01 06:36

How can i get values inside using php DOM. This is few code from my xml.

     

        
          


        
5条回答
  •  天命终不由人
    2020-12-01 07:08

    Use this:

    $parseFile = simplexml_load_file($myXML,'SimpleXMLElement', LIBXML_NOCDATA)
    

    and next :

    foreach ($parseFile->yourNode as $node ){
    etc...
    }
    

提交回复
热议问题