This is a follow up question to this answer:
How do I parse XML from PHP that was sent to the server as text/xml?
JavaScript/jQuery:
var xmlDoc =
Your PHP script receives
if you think this isn't so.
xmlDoc is an xml document, but the result of jQuery( "
https://developer.mozilla.org/en/DOM/element.tagName says:
In XML (and XML-based languages such as XHTML), tagName preserves case. In HTML, tagName returns the element name in the canonical uppercase form. The value of tagName is the same as that of nodeName.