XML and JavaScript Introduction. XML Brief Introduction:- 1) Understanding XML Documents:- An XML document is comprised of one or more named elements.