cancel
Showing results for 
Search instead for 
Did you mean: 

XML to XML: Split mapping created no messages.

viswanahreddy
Participant
0 Kudos

XI is unable to split the message in Message Mapping(error: Split mapping created no messages.) because of source XML issue and unable to identity the exact issue in xmlns.

1. source always sends xml message in the below format.<?xml version="1.0"

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

<Report xmlns="urn:abc-com:xyz:abcdefgh:lmnopq" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Header>

<Type>XX</Type>

<Date>2018</Date>

</Header>

<Detail>

<Doc>XX</Doc>

<Type/>

<Detail2>

<AMR>12345</AMR>

<SerialNumber>xxxxxxxx</SerialNumber>

<Description1>xxxxxxxx </Description1>

<Company>xxxx</Company>

<Location>xxxxxxx</Location>

<Center>xxxxxxx</Center>

</Detail2>

</Detail>

</Report>

2. But i managed to process the above message by replacing

<Header> with <Header xmlns="">
<Detail> with <Detailxmlns="">

i feel adding xmlns="" to header and detail is a wearied thing.

Please suggest whether the XML tag is proper or not, if not what should be the appropriate one.

If my second option is correct what should i append those in Header and Detail.

Accepted Solutions (0)

Answers (1)

Answers (1)

rasjoshi
Active Contributor
0 Kudos

Hi,

Please share your logic here. and reason to put this logic..

BR,

Rashmi