CDATA and xml node

 5 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Lorena
Advanced Member Send Private Message
Posts: 37
Advanced Member
Hi,

I am new using Process Flow and xml.

One of our vendors is requesting a file in XML format.
I was able to built the file using the xml node in Process Flow but I need to include CDATA in one of the elements.

The file should look like this:
<element><!--[CDATA[<br />
    .....<br />
    .....<br />
    .....<br />
    .....<br />
    .....<br />
]]>element><br />

I do not know how to include this CDATA.

Any help will be greatly appreciated.
Thanks,
Lorena
John Henley
Send Private Message
Posts: 3351
Have you tried just including the CDATA tagging and value as part of the node value?
Thanks for using the LawsonGuru.com forums!
John
Lorena
Advanced Member Send Private Message
Posts: 37
Advanced Member
I tried to assign

[code] [/code]

to the value of that element under the node detail section and it is telling me that I need to close the ] and change the value to
[code]]]" [/code]

When I run it, I am getting this output
[code] "?xml version="1.0"?>"[/code]

I want this to look like:
[code] [/ [/code]

Is this what are you suggesting?

Thanks,
Lorena
John Henley
Send Private Message
Posts: 3351
Looking into this some more, it looks like the CDATA wrapper is automatically used when the XML node runs, depending on the node values.
What is the actual node value that you are trying to include that requires a CDATA wrapper?
There are some other ways to attack it, primarily with some java script functions that output XML nodes and/or using escape characters

Thanks for using the LawsonGuru.com forums!
John
Lorena
Advanced Member Send Private Message
Posts: 37
Advanced Member
Thank you John.
I was looking at an example that the Vendor provide to us and it has the CDATA on it and I thought that it is a required tag no matter if you are using special characters.
I will test it with special characters and check if it will add the CDATA automatically.
Thank you.
Lorena
Advanced Member Send Private Message
Posts: 37
Advanced Member
I used special characters like ), &,< but it is not including the CDATA automatically. It is translating the special characters (like & for & or < for <