cancel
Showing results for 
Search instead for 
Did you mean: 

Error XI XML not well formed

Former Member
0 Kudos

The source XML file includes above field. When I tried to test the message mapping using the source xml file with the above tag.Message mapping resulted in an error "XML is not well formed". Does any body have any idea how to prevent this in XI ?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello kamath,

Thanks for the immediate response.

I tried the encoding option you provided, it resulted in the same error. But I used a similar one "iso-8859-1" with iso prefixed and Message mapping test is successful.

Your answer was helpful.

Thanks,

Nivedita

Highly appreciate all of your help.

Former Member
0 Kudos

Pam,

How do I award points ? I haven't used SDN very often. Please let me know.

Thanks,

Nivedita

VijayKonam
Active Contributor
0 Kudos

While you respond.. check in the left panel of each of the response.. you would have option to reward points there..

VJ

Former Member
0 Kudos

Thanks for the response.

<?xml version="1.0" encoding="UTF-8" ?>

I have the encoding option at the top of the xml file but still get the error "XML file not well formed".

Does this need to be fixed in XI or java ? If this needs to be fixed in XI then how ?

Former Member
0 Kudos

From what I understand use of accent character will cause an issue when converting via xml adapter.

Can you try this -

Instead of using an accented character, the accent is placed after the character, i.e. sara' or sara` instead of sarà.

Pam

Former Member
0 Kudos

or try this -

<?xml version="1.0" encoding="8859-1"?>

VijayKonam
Active Contributor
0 Kudos

<LOCATION>México_DF_MX</LOCATION>

It has nothing to do with above filed. Ther must be some thing else wrong with in the mapping. The above tag successfully executed in one of my mappings.. check if all the tags are properly closed in the source xml.

VJ

Former Member
0 Kudos

Hello VJ,

The error "XML not well formed" is due to the accent words in the field value in the source XML file. But when we remove the accent mark the MM test is successful.

How do I prevent this accent mark in xml file ? Should we take of this in XI or Java code ?

Highly appreciate your help.

Thanks,

Nivedita

VijayKonam
Active Contributor
0 Kudos

Mmmm.. not really sure.. since it worked in my mapping.. :-(.. could be something related to unicode settings..!! Not sure though.. lets wait for any other expert's reply..!!

VJ

former_member181962
Active Contributor
0 Kudos

Hi Nivedita,

Probably you should use a encoding version(In XML) that support the accentuation characters.

regards,

Ravi Kanth Talagana

Former Member
0 Kudos

Hello Nivedita,

I had a similar requirement couple of years ago and not much has changed in how we can handle xml containing unwanted special characters. I ended up creating a java bean (ejb) which removed the special character and replaced it with space. Writing a ejb can pose its own challenges but this is a sure way to fix the problem. I used NWDS to code and deployed it as a service to XI engine.

Let me know if you need any documentation on this...there are plenty of advices and links pdf floating around in SDN.

Thanks,

Pam