cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion of XML tags in receiver file adapter

Former Member
0 Kudos

Hi All,

I am sending one xml file to receiver file adapter.

But in case of receiver side I need to change the tags in XML structure,

eg:

if source aml file has tag <NAME> then in receiver case I need to convert it to <FNAME>.

How will I achieve it?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Shweta,

Changing a tag name to another is done in Mapping. Any way can you give an example of what you are trying to achieve? So that, we can help you better.

Regards,

Jai Shankar

Former Member
0 Kudos

Hi

I also have the similar query

The output message we get from XI has following format

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

<ns1:name xmlns:ns1="urn:xiworkshop:changetag">

</ns1:name>

I want an xml with following format

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

<name>

</name>

I need to write the file with with this structure and format using file adapter.

Can I do so in File adapter or mapping is required for the same?

Any suggestion would be highly appreciated(with points obviously )

Regards

Vanita thareja

bhavesh_kantilal
Active Contributor
0 Kudos

Well, your source and target XML have only a ROOT node? this is not a valid XML at all and will error out in XI if you have a message mapping.

Regards

Bhavesh

Former Member
0 Kudos

Hi

No there are more nodes inside but my aim was to highlight that i just need to convert that <ns1;...> tag to <name> tag.

Regards

Vanita Thareja

Former Member
0 Kudos

U can follow this approach if u dont want the namespace in the output file.............

/people/sameer.shadab/blog/2005/12/05/how-to-remove-namespaces-in-mapping--xi

Former Member
0 Kudos

Hi

Thanks a lot. I got the solution to my problem.

Regards

Vanita Thareja

Former Member
0 Kudos

what is it?

Former Member
0 Kudos

Are You using same structure for source and destination without doing the mapping.......

Use seperate structure for source and destination..