Introduction An xml documents consists of elements, attributes and text. There are two structures in an xml document: simple ( contains only text ) can ba either Built-in, or Derived complex ( has attributes or child elements, and possibly texts as w…