Create a new node in document

Does anyone now how to add a new element into a document? For example street2 in the folowing structur.








Thanks for help!

You should read the Microsoft DOM spec -start at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/sdk_intro_6g53.asp

one way to to position to the element, let’s call it c, then do.

c.parentNode.insertBefore(newNode,c);
where newNode is the street2 node