on 01-11-2007 4:08 PM
Hi all,
i have to map an xml file, wich is incoming via a RFC call in a flat import field, to a xml-Structure. The xml Structure has the same Structure except that it is not flat but even as a xml-Structure in the Repository. Ist ther a way to make a 1:1 - Mapping?
Regards Mathias
Hi Matthias,
congratulation for your talent to explain easy things maximal complex
I assume you could use XSL with <xsl:copy-of select="/myNSPrefix:myRootelm/*"/>.
Assumedly the rootelement cant be copied coz of namespace.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This can be done very easily using Java Mapping.
Parse the flat xml String using Dom4j and directly set this as the target structure.
eg code:
public void execute(InputStream in, OutputStream out) throws StreamTransformationException{
String flatXml = "the flat xml string";
Document doc = DocumentHelper.parseText(flatXml) ;
out.write(doc.asXML().getBytes());
}
Regards,
P.Venkat
Mathias,
You mean the source and target structures are different. In that case you have do manually one by one.
But if you have both same structures then you have an option in message mapping.
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.