' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Set doc = CreateObject("MSXML.DOMDocument")
doc.Async = False
doc.Load("in.xml")
Set sysnet = doc.CreateElement("system.net")
Set conmgmt = doc.CreateElement("connectionManagement")
Set add =  doc.CreateElement("add")
add.SetAttribute "address", "*"
add.SetAttribute "maxconnection", "24"
conmgmt.AppendChild(add)
sysnet.AppendChild(conmgmt)
doc.DocumentElement.AppendChild(sysnet)
Set sysnet = Nothing
doc.Save("out.xml")
Set doc = Nothing
