flak 0 Posted March 1, 2007 Report Share Posted March 1, 2007 Hi,I am generating xml using asp: Set TestElement = XMLDoc.createElement("test") How do you get two elements inside the xml tag? For example if i wanted to create the following tag: <test name="help" id="12"/> Quote Link to post Share on other sites
jesh 0 Posted March 2, 2007 Report Share Posted March 2, 2007 Something like this?: TestElement.setAttribute("name", "help");TestElement.setAttribute("id", "12"); Check out the XML DOM tutorial for more info: http://www.w3schools.com/dom/met_element_setattribute.aspEDIT: Sorry about the ";" in the code above, I always forget that you don't use those in VB. Quote Link to post Share on other sites
flak 0 Posted March 2, 2007 Author Report Share Posted March 2, 2007 Thanks jesh, I must have missed that tutorial. Will give it a try. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.