Suppose you have an xml doc with tags with ns colons such as <person:core age="25" />
, how do you get the attribute value using PHP DOMDocument?
Asked
Active
Viewed 255 times
0
-
possible duplicate of [Parsing XML attributes within a namespace tag (PHP)](http://stackoverflow.com/questions/6698870/parsing-xml-attributes-within-a-namespace-tag-php) – hakre Jun 21 '13 at 23:07
-
If the XML does not declare that prefix, it will be dropped and the duplicate is: [PHP DOMDocument getting Attribute of Tag](http://stackoverflow.com/questions/1597746/php-domdocument-getting-attribute-of-tag) – hakre Jun 21 '13 at 23:10