cancel
Showing results for 
Search instead for 
Did you mean: 

xml not well formed

Former Member
0 Kudos

Hi all,

I am doing Java Mapping. Ia m getting an error: "xml not well formed" while testing the interface mapping. So can any body help me in this regard?

Regards,

Pavani

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

please check whether the occurence for the target side is appropriate.

if you want the target multiple times then put the occurence as 0..unbounded.

Thanks

Rinku

Former Member
0 Kudos

Hi Rinku,

I am testing with a very basic example.(single input).

Regards,

Pavani

Former Member
0 Kudos

hi,

Add Trace Statements to your Java Code and then test the mapping

regards

ajai

Former Member
0 Kudos

Hi

can you please provide your source structure and the target structure

Thanks

Rinku

Former Member
0 Kudos

Hi ajai,

can u tell me what is the trace statement with example

Regards,

Pavani

Former Member
0 Kudos

Hi Rinku,

My input structure is as follows...

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

<ns0:MTO_JavaMapping01 xmlns:ns0="http://INOAC.com/scenario/JavaMapping01">

<Order>

<Header>

<EmpId/>

<EmpName/>

<EmpLoaction/>

</Header>

<Details>

<EmpTask/>

<EmpEffort/>

</Details>

</Order>

</ns0:MTO_JavaMapping01>

and my output is the same structured one.

Former Member
0 Kudos

Hi

if you want that in the target structure the header and the detail nodes should be multiple times then you have to put the occurence for both as 0..unbounded

an d another in the interface mapping put the occurence for the target message as 0..unbounded

if you still face the probelm please reply me back

Thanks

Rinku

Former Member
0 Kudos

Hi

please mark the problem as answered if solved

Thanks

Rinku

henrique_pinto
Active Contributor
0 Kudos

in the test tab of interface mapping, on the target message side, click the "view source" (or something like that) button. You'll be able to see the full output of the java mapping in text mode (no matter whether it's a well formed xml or not). Then you can evaluate whether your mapping is working as you expected.

Regards,

Henrique.

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Pavani

please check whether the occurence for the source as well as for the target, whether all the nodes and fields have appropriate occurence.

and if you are able to see the file in the sxmb_moni then copy the payload from the sxmb_moni into your interface mapping . and you will come to know abouth the error.

Thanks

Rinku

udo_martens
Active Contributor
0 Kudos

Hi Pavani,

i m not shure, that s the result, what is not well formed, may be the source? Just load the source / target into Internet Explorer, it will validate your msg. If you cant find out, post the source code but only if less than 100 rows

Regards,

Udo

Former Member
0 Kudos

Hi,

To check you xml file, use the tool "Altova XMLSpy" it will resolve all your problems.

http://www.redsofts.com/soft/642/39029/XMLSpy_Home_Edition.html

Regards,

Sarvesh

former_member189387
Active Contributor
0 Kudos

Hi ,

Have u succeeded in Message mapping ? Give some sample data and test .

Regards.,

V.Rangarajan

Former Member
0 Kudos

Hi Ranga Rajan,

I am testing the interface mapping only.

While testing, It will use the java code I have written right?

I am getting "xml not well formed" while testing interface mapping.

By the way, we dont need any message mapping when we go for java mapping right?

Please tell me where the process gone wrong?

Regards,

Pavani

Former Member
0 Kudos

Pavani, it means, that the result of your mapping is not a correct XML document. You have probably some unclosed tag or wrong tag nesting or so.

Find on the web some XML validator and put your result into the test. It'll tell you, wat's wrong.

Peter