flak 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"/> Link to comment Share on other sites More sharing options...
jesh 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. Link to comment Share on other sites More sharing options...
flak Posted March 2, 2007 Author Report Share Posted March 2, 2007 Thanks jesh, I must have missed that tutorial. Will give it a try. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now