Need CDATA removed which has XML output

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
indian98476
Forum Commoner
Posts: 78
Joined: Tue Dec 15, 2009 3:24 am

Need CDATA removed which has XML output

Post by indian98476 »

I got a php script here and I want to remove the CDATA fo XML output. What should I do? SInce, I don't have much time to look through, would really appreciate a timely help from your side. Thanks in advance.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Need CDATA removed which has XML output

Post by Christopher »

Does the script output XML or does it read XML files?
(#10850)
indian98476
Forum Commoner
Posts: 78
Joined: Tue Dec 15, 2009 3:24 am

Re: Need CDATA removed which has XML output

Post by indian98476 »

when i tried to run the script in my localhost it gives a pop-up to download the script...
indian98476
Forum Commoner
Posts: 78
Joined: Tue Dec 15, 2009 3:24 am

Re: Need CDATA removed which has XML output

Post by indian98476 »

and there is no cdata being mentioned in the script....so how do i check it?
indian98476
Forum Commoner
Posts: 78
Joined: Tue Dec 15, 2009 3:24 am

Re: Need CDATA removed which has XML output

Post by indian98476 »

I got the requirement and fully understood it now only. Here is what I want.

I got a link which is an XML call and output is in XML format
XML Call:
Use this URL to get the ads in XML format.

When I view the source CDATA is added to it. My client wants to parse this XML output with XML parser but since XML parser cant read the CDATA(i read thru 2 get this one...whew...), it just gets skipped.
Now, he wants to remove the CDATA from the generated source file . CAN anyone help me NOW?
indian98476
Forum Commoner
Posts: 78
Joined: Tue Dec 15, 2009 3:24 am

Re: Need CDATA removed which has XML output

Post by indian98476 »

SOLVED....


sorry frnds..

just had to remove CDATA in the output....
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Need CDATA removed which has XML output

Post by requinix »

indian98476 wrote:I got a php script here and I want to remove the CDATA fo XML output. What should I do?
indian98476 wrote:SOLVED.... just had to remove CDATA in the output....
So the solution to your problem was... the problem itself? Oookay...
Post Reply