I developed a xml file in visualbasic and my code looks like this:
ofcourse i declared all the variables, here i'm not showing.
Set objperson = m_objDOMpeople.createElement("PERSON")
'to this create element (objPerson), add its childNodes
Set objNewchild = m_objDOMpeople.createElement("NAME")
objNewchild.Text = B_Name
Set objNewchild = m_objDOMpeople.createElement("ADDRESS")
objNewchild.Text = B_Address
I'm getting resulting xml file as:
What I want is how to create a xml tag in the middle like:
If you observe both codes you will see difference, i want to acheive the second one. I tried several ways but it is not working.