Accessing data from CData sections

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hannahd
Forum Newbie
Posts: 16
Joined: Wed Feb 18, 2004 9:40 am

Accessing data from CData sections

Post by hannahd »

Hello I have an xml file like this:

<?xml version="1.0" encoding="iso-8859-1"?>

<entry>

<headline>headline</headline>

<content>
<![CDATA[

<B>This is where the content goes</B>

]]>

</content>
</entry>

And I am trying to output it in html using PHP and DOM XML, but I have no idea how to access the data from the CDATA section using the DOM.

Please help

Thanks :)

Hannah
Post Reply