Create XML in JavaScript
Disclaimer: The following answer assumes that you are using the JavaScript environment of a web browser. JavaScript handles XML with ‘XML DOM objects’. You can obtain such an object in three ways: 1. Creating a new XML DOM object var xmlDoc = document.implementation.createDocument(null, “books”); The first argument can contain the namespace URI of the document … Read more