Path

ez projects / ezxmlexport / forum / general / & in xml files


& in XML files

You need to be logged in to post messages in the forums. New users may register here.

david lee

Member since:
06 April 2010

Posts: 1

Friday 16 July 2010 10:50:23 am

When I use this extension, I found that when the content contains &, the xml can be exported but can't open.

Then i Found that the type of the attribute is a text line, and in the code os ezxmlupload, it just output the content, so i change the code of ezxmlupload.

extension/ezxmlexport/classes/datatypes/ezstring/ezstringxmlexport.php
Line 49:
Change from



return $this->contentObjectAttribute->content();



To



return "<![CDATA[\n"


           .$this->contentObjectAttribute->content()


           . "]]>\n";



also, you can change another file to void this problem.

extension/ezxmlexport/classes/datatypes/eztext/eztextxmlexport.php
Line 33:
Change form



return $this->contentObjectAttribute->content();



To



return 

           "<![CDATA[\n"


           .$this->contentObjectAttribute->content()


           . "]]>\n";


Up

You need to be logged in to post messages in the forums. New users may register here.