All over the project:// Extract element name without the namespace prefix var tagName = el.tagName.split(":");
el is, expectably, plain old Element.
There is no reason to use a prefix there; xmlns= would work there just fine (but break this parsing).
There is no reason to use XML there either. It is just too entrenched by now to change.