Posted: Tue Aug 19, 2014 10:47 pm Post subject: How to delete XML header from a web response
Novice
Joined: 07 Jul 2014 Posts: 18
Hi all
I'm working on Google web services. My flow and code is working very well and getting the response also. In my response I'm getting an xml header like this <![CDATA[<?xml version="1.0" encoding="UTF-8"?>. Is it possible to delete this header using esql...? If possible please suggest some instructions. To delete this xml header I have gone through infocenter also but I couldn't find any topics related to this. My requirement don't need this xml header in my response. Thanks in advance....
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
Ask yourself this question
"What is the purpose of the following bit of data?"
Code:
<?xml version="1.0" encoding="UTF-8"?>
When you are totally clear on that and what effect it might have on the application that is going to use the XML contained within the [CDATA] section then ask this question again.
What use is the encoding="UTF-8" part to a parser that is looking at this (and any XML)?
What happens to the data if the XML in the CDATA section is parsed using the wrong Encoding say, ISO-Latin-8859-15? could it be parsed incorrectly.
Then ask yourself if this is badly formed XML?
Then armed with that information go back to whoever created the requirement and ask them to think again. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum