mifflin has asked for the wisdom of the Perl Monks concerning the following question:
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...
Is there some 'feature' in XML::Writer that I am missing that can help me?$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});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Writer entity transformation issue
by samtregar (Abbot) on Jan 20, 2006 at 20:43 UTC | |
|
Re: XML::Writer entity transformation issue
by mifflin (Curate) on Jan 20, 2006 at 19:59 UTC | |
|
Re: XML::Writer entity transformation issue
by nobull (Friar) on Jan 20, 2006 at 19:18 UTC | |
by mifflin (Curate) on Jan 20, 2006 at 19:34 UTC |