Detect xml namespace and strip (PHP)

In Progress Posted Jan 6, 2012 Paid on delivery
In Progress Paid on delivery

I have a payload in a PHP variable i.e.

$payload = "

Hello there

";

I want to srip the namespaces in $payload, so that

print $payload;

produces

Hello there

ie the cc: namepaces has been stripped. Note that the specific prex name (ie. "cc") is completely arbitrary and can change at any time (but would obviously be defined as a namespace in a parent element.

In effect, the "cc" prefix can change, but the url (i.e. "[url removed, login to view]") will always be the same

PHP XML

Project ID: #1373792

About the project

5 proposals Remote project Active Jan 6, 2012

5 freelancers are bidding on average $68 for this job

zeee

please see pmb.

$30 USD in 1 day
(173 Reviews)
7.8
Dunkoh

lets do this. See PMB.

$30 USD in 1 day
(108 Reviews)
6.8
sinisa

Hello, please check PM.

$30 USD in 1 day
(110 Reviews)
6.3
kpremkumarcse

Hi, This is a simple project and i can do this for no time

$50 USD in 1 day
(4 Reviews)
3.7
parasmalhotra

please cheack my pm

$200 USD in 3 days
(0 Reviews)
0.0