The XML I am trying to parse has structure similar to this – where there are colon’s in te tag: <person:type>mean</person:type>
Can PHP DomDocument parse such a structure? The usual getElementByTagName does not seem to work
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sort of, you really want
getElementsByTagNameNS. At the beginning of the document, you might notice something likexmlns:person="http://foo.bar.com". That URL would be the first parameter of the method, ‘type’ would be the second.