Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

PabloMayrgundter

Member since
PabloMayrgundter

Recent Docs Activity

View all activity
Page Date Comment

JXON


Small fix in the final code listing. x.hasAttributes() not defined, so x.attributes ? true : false;

JXON


The final script was broken in two ways: 1) it didn't transfer namespaced xml sub-nodes to the JSON object, 2) it lower-cased tag names. I fixed both of these and now it works.