Skip to Content
0
Feb 18, 2009 at 10:01 PM

JAVA Sax mapping replaces &_amp; with & causing mapping to fail

23 Views

Hi all,

I have the following mapping scenario:

Source XML -> Java Sax Mapping -> Graphical Mapping -> Target structure

The source XML is valid and caters for special characters like & which appear as &_amp; in the XML (ignore the underscore _ without it the editor strips the amp;, isn't that ironic!).

The second step of the interface mapping, which is the graphical map, is failing. It seems that the Java Sax mapping is replacing &_amp; with & in the XML, which is then causing the graphical map to fail as it cannot handle the special character &.

Is there anyway I can prevent the Java Sax mapping from changing & to &

Or is the only solution for me to write extra code in the Java map to convert & back to &_amp; before passing to the second mapping step????

Any help appreciated.

Che

Edited by: Che Eky on Feb 18, 2009 11:05 PM