on 08-14-2010 6:07 AM
Hi ,
My requirement is I need to genarate the XML according to client requirements.
I am able to genareate the XML with <?xml version="1.0" encoding="UTF-8" ?> as Header but client requiremetn is like this
<?xml version="1.0" encoding="UTF-8" ?>
<?Label MEXICO|PROFILE|2033169|SUCCESS?>
and hear MEXICO and 2033169 will change dynamically for every xml genaration. How it make as dynamical and how can I achive this.?
Plz guid me...
Thanks
Krishna
> <?Label MEXICO|PROFILE|2033169|SUCCESS?>
This is not an XML header, but a process instruction.
If you are familiar with XSLT, you can use this XSLT-element:
<xsl:processing-instruction>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna,
You can easily do this by adding a java mapping after the graphical mapping. Keep a element in target structure to catch the dynamic value and in java mapping modify that as your need.
Regards,
Sunil Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can refer to the code provided in this thread and . Java mapping would do these steps -
a) Convert the incoming xml into string.
b) Modify it with some string function as per requirement.
c) Convert the string back to xml.
For more understanding about Java mapping, go through links provided in the thread .
Regards,
Sunil Chandra
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.