on 12-18-2008 6:17 AM
Hi everybody,
I use a SAX JAVA Mapping. It throws an error cause the xml that is parsed has a
&
like in
<D_3036>Company & Co. KG</D_3036>
Does anybody know how to solve the problem?
I do not want to replace the
&
Are there special settings/properties for the handler/parser?
Thanks
Regards
Mario
Hi all,
thanks for your comments and suggestions. The error was not cause by the problem I describes.
FYI:
If there is an ampersand in the middle of a string, than the standard method
characters
in the handler is called three times!
This let me asume the ampersand was the error.
Regards Mario
Edited by: Mario Müller on Dec 19, 2008 1:23 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> I use a SAX JAVA Mapping. It throws an error cause the xml that is parsed has a
>
>
&
The
&
should not bother the mapping at all.
What exactly is the error message which is thrown by the mapping?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mario
special keywords in XML must be handelled by variable not directly as you have used
follow the link to W3school for this problem.
Plesae follow this link for an example of JAVA mapping using SAX parser
http://objectissues.blogspot.com/2006/05/sample-sax-parser.html
http://www.roseindia.net/xml/sax/EmployeeDetails.shtml
regards
sandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Make sure that the incoming message is in UTF-8 format. If not, you may place a dummy mapping before java mapping to convert the incoming message to UTF-8 encoding
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.