CodeIgniter Forums
How to use XML helper - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: How to use XML helper (/showthread.php?tid=53749)



How to use XML helper - El Forum - 08-07-2012

[eluser]condoace[/eluser]
I am using XML helper.

I have a string I pass to xml_convert('string').

I get back a full RSS/XML feed with entities.

What I want to do is grab one of these, for example <item> and store just the text in my db.. how can I do this? any libraries or ideas?

There is little info on the XML helper.. hence why I think this might help others aswell.. thanks


How to use XML helper - El Forum - 08-07-2012

[eluser]Aken[/eluser]
xml_string() is designed to encode characters that have special meaning in XML files, so that they don't mess up the XML structure when input into XML.

You need to use something like SimpleXML to actually parse through XML itself.