For a given xml,
<?xml version="1.0" encoding="utf-8"?>
<College xmlns:A1="zool:"xmlns:A12="dym:">
<A1:name>Seattle</A1:name>
<A1:MiddleName>I</A1:MiddleName>
<A12:lastname>Roya Asbari</A12:lastname>
</College>
how do i get the name space for each node while iterating.
Also the format of xml would differ everytime, so I am m looking for a generic way.
Setup XML
Getting Element Name, Namespace and Prefix with DOM
Output (codepad)
See http://php.net/manual/en/class.domnode.php