![]() |
MY_Xml_Writer - Easy XML writer library - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: MY_Xml_Writer - Easy XML writer library (/showthread.php?tid=16572) |
MY_Xml_Writer - Easy XML writer library - El Forum - 03-02-2011 [eluser]ukCIdeveloper[/eluser] Hey man, I've made some changes for a few things that are working well for me. Do you host on Github at all or have experiencing using it? I'm pretty new to it myself, but wondered about sharing my mods on there with you. Or I can just send over the changes for you to check out? ![]() Regards, Neil MY_Xml_Writer - Easy XML writer library - El Forum - 03-02-2011 [eluser]JoostV[/eluser] Actually I do. Haven't set up a repo for this lib, but I will. Get back to you when it's done! MY_Xml_Writer - Easy XML writer library - El Forum - 03-02-2011 [eluser]JoostV[/eluser] Hi all, This class has moved to Github. Feel free to post a pull request if you have any additions. https://github.com/accent-interactive/xml_writer MY_Xml_Writer - Easy XML writer library - El Forum - 03-02-2011 [eluser]JoostV[/eluser] @Neil you can send me a pull request for Github. I'll get a mention then, asking me to pull in your changes. Thanks for sharing! MY_Xml_Writer - Easy XML writer library - El Forum - 04-26-2011 [eluser]neerose[/eluser] hey man thanks for you library file. its all working fine but i have some problem. while we write xml it converts all the html tags are encoded, i mean <div><b>Storyboard Artists</b></div> will be converted into <div><b>Storyboard Artists</b></div> <div>�</div> <div> but i do not want to encode while writing xml. can you suggest me please, how can i do it? MY_Xml_Writer - Easy XML writer library - El Forum - 04-26-2011 [eluser]neerose[/eluser] hey man thanks for you library file. its all working fine but i have some problem. while we write xml it converts all the html tags are encoded, but i do not want to encode while writing xml. can you suggest me please, how can i do it? MY_Xml_Writer - Easy XML writer library - El Forum - 04-27-2011 [eluser]JoostV[/eluser] @neerose: I don't understand what you are asking. The class itself does not encode strings. If you do this: Code: $xml->addNode('content', '<div><b>Storyboard Artists</b></div>', array(), true); It will come out as: Code: <content><![CDATA[<div><b>Storyboard Artists</b></div>]]></content> By the way: always wrap your HTML code in CDATA tags. You do this by adding TRUE as the fourth parameter in addNode(). MY_Xml_Writer - Easy XML writer library - El Forum - 01-18-2012 [eluser]kista[/eluser] XML parsing failed 1: <?xml version="1.0" encoding="UTF-8"?> Becouse of the whitespace in the begining of xml document. Thank you for your help. MY_Xml_Writer - Easy XML writer library - El Forum - 01-18-2012 [eluser]JoostV[/eluser] [quote author="kista" date="1326924409"] XML parsing failed 1: <?xml version="1.0" encoding="UTF-8"?> Becouse of the whitespace in the begining of xml document. Thank you for your help.[/quote] I'm having trouble understanding what you mean. Could you be more specific? Did you download the latest version from Github? MY_Xml_Writer - Easy XML writer library - El Forum - 01-18-2012 [eluser]kista[/eluser] Yes I have downloaded the latest version. When I get the xml from $xml->getXml(true); I get the xml which starts with whitespace and then xml validator breaks with error: XML declaration not at beginning of document. |