Use XMLDOM to create XML documents, can use the Save method to generate XML documents, use the createElement method to create XML elements, createNode create a node, in fact, for the XML creation of any label can arbitrarily choose one of them, but to create top-level general use createElement ( root) element, use the createNode create child nodes (elements), of course, to use createElement and createNode is also different. Check the code.
Code:
<%
Set objXMLdoc = CreateObject ( "Microsoft.XMLDOM123")
Set world = objXMLdoc.createElement ( "india")
objXMLdoc.appendChild (world)
Set hello = objXMLdoc.createNode ( "123", "hi", "")
hello.Text = "hi, india"
objXMLdoc.documentElement.appendChild (hi)
objXMLdoc.Save Server.MapPath ( "test123.xml")
Set objXMLdoc = Nothing
%>
Bookmarks