Author |
Message
|
WBI_user |
Posted: Mon Sep 10, 2007 7:15 am Post subject: Asiselement |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
I received some flow from another site which I need to mdified and run on my borker. The flow is using XML.Asiselement to handle special characters inside the XML output message. One example is to embed an XML message inside the XML ouput .
Set OutputRoot.XML.My_XML_message.(XML.Asiselement) = <A>.....</A>
I think the esql was from a 2.1 system.
I search the V6 esql manual , asiselemet is no longer there. So I don't think I can use XMLNSC.Asiselement.
One thing I can do , I think is to use CData which I know XMLNSC supports. But CData will put ![CDATA.] to the output.
Is Asiselement gone ? Anyway to just output the XML message without any addition data such as  |
WBI_user |
Posted: Mon Sep 10, 2007 7:30 am Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
Sorry, I was posting base on my memory. I just received the code. It is Asiselementcontent and not asiselement. AsiselementContent is described in the Info center. I'll do soem reading first to see if AsisElementContent will solve my problem. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Sep 10, 2007 4:03 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
If the downstream application uses a proper XML processor, nobody will know or care whether or not your generated XML contains a CDATA section. Why does it matter in your case? |
|
Back to top |
|
 |
WBI_user |
Posted: Tue Sep 11, 2007 5:31 am Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
Thanks for the response Kimbert.
The XML message output will be viewed by the end user. This is more for cosmetic. They prefer not to see the  |
kimbert |
Posted: Tue Sep 11, 2007 5:41 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
And how will the receiving application display this 'XML message output'? It will probably ask an XML parser to retrieve the 'value' of the element. At that point, the XML parser will remove the [CDATA] markup and return the value of the element - minus the [CDATA] syntax. |
|
Back to top |
|
 |
WBI_user |
Posted: Tue Sep 11, 2007 12:51 pm Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
Fior now they just use RFHUTIL (ih03) to view the message on the queue. This is not imprtant. Just like to see if I can help with minimum effort. For example a quick change of ESQL from Cdatasection to AsisElementContent. If this cannot be done or not recommended, I can just forget it. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Sep 11, 2007 1:00 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
If they are smart enough to use RFHUTILC, then they are smart enough to ignore CDATA. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|