on 2007 Jun 19 9:59 PM
I am using the iXML class in ABAP to create an xMII compatible XML document (ROWSETS / ROWSET / ROW). The document is returned as a standard output string back to xMII. The question is how can I assign the result to an XML variable? Depending on the assignment option that I pick, I get one of the following two results:
1: <?xml version="1.0" encoding="UTF-8"?><XML><?xml version="1.0" encoding="utf-8"?> .....
Note that this is an XML document wrapped and encoded in an XML document.
2: <?xml version="1.0" encoding="UTF-8"?>
If I take the string and write it to a text file then load the file using the XML loader it works fine. Any way I can achieve this results without an intermediate file???
Figured it out. I had to REMOVE the XML in the XML variable prior to assigning the XML in my string.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Figured it out. I had to REMOVE the XML in the XML variable prior to assigning the XML in my string.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you may need to use the xmlencode( String ) and/or xmldecode( String ) functions of the link editor. I know we have to to this when we pass the contents of an xml document as a String and convert it back into and xml type.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sounds like the StringToXmlConverter is just what you need. Just be sure you have 11.5 SR3 installed + latest hotfixes.
- Rick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rick -
We look to be up to date per your previous posting. Not sure I am explaining my problem well. Let me describe a way to reproduce it:
1. In BLS, create an xMII xml document with a couple columns and a couple rows.
2. Save the xml to a file via the XML Saver Action.
3. Load the file via the text loader. Now you have an xml document contained in a string variable.
4. Assign the string variable to an XML variable. (This is my problem).
What I want to end up with is an XML identical to the one generated in step 1.
Assuming that you are running 11.5 SR3, use the StringToXmlConverter action (note that this action did not work properly prior to SR3).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.