I'm using XML::Writer to build an xml file to load our IBM websphere commerce database. The xml spec I have to use uses attributes for all the data, so i cannot use any cdata to preserve data. The problem I'm having is that some of the data I have already has some entities in it. For exampe: the copy right symbol is in my description in my database as ±
When I send that data through XML:Writer the ampersand gets transformed in the data to ±
Is there any way to make XML::Writer leave exiting entities alone?
Here is a sample of the code that I am using to create an entry in my xml that has the problem...
$upd_xml->emptyTag('catentdesc',
catentry_id => iu_product_catentry($part, $pi),
language_id => $properties{language_id}{"en_$cntryid"},
name => $pi->{NEW_SHORTNAME},
shortdescription => $pi->{NEW_SHORTNAME},
longdescription => $pi->{NEW_LONGNAME},
fullimage => $pi->{NEW_DETAIL_IMAGE},
available => '0',
published => ($pi->{NEW_ISRETIRED} or $pi->{NEW_ISINVISIBLE}
+? '0' : '1'),
keyword => $pi->{NEW_KEYWORDS});
Is there some 'feature' in XML::Writer that I am missing that can help me?