on 09-10-2009 12:42 PM
Hi
I would like to add this xml tag to my xml document i PI 7.1:
<?xml-stylesheet type="text/xsl" href="xcbl_invoice_stylesheet.xsl" ?>
Before:
<Invoice>
<InvoiceHeader>
<InvoiceNumber>
<Reference>
<RefNum>8858382</RefNum>
</Reference>
</InvoiceNumber>
......
after:
<?xml-stylesheet type="text/xsl" href="xcbl_invoice_stylesheet.xsl" ?>
<Invoice>
<InvoiceHeader>
<InvoiceNumber>
<Reference>
<RefNum>8858382</RefNum>
</Reference>
</InvoiceNumber>
......
What is the esiest way to do that?
BR
MIkael
Hi,
You can use java mapping to add the same
in interface determination :
1. First mapping will convert the source to target structure
2. Second mapping (java mapping) will add the necessary <xsl> tag
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I meant to read the entire source into a stringbuffer. Append xsl structure to it and convert it directly to a XML structure.
Never thought of including DOM or SAX technology
Something like this:
DOMParser parser = new DOMParser();
parser.parse(new InputSource(new java.io.StringReader(xml))); // xml is a
string containing xml
Document doc = parser.getDocument();
Regards
Suraj
Edited by: S.R.Suraj on Sep 10, 2009 9:27 AM
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.