strQuery="//object [@ID='" & ID & "']"
xomNull=xomRootOtvet
Log(strQuery)
xomNs=xomNull.Query(strQuery)
xomObj=xomNs.GetNode(0)
xomNew.Initialize("otvet")
atrIMEI.Initialize("IMEI",smsIMEI)
xomNew.AddAttribute(atrIMEI)
atrPhon.Initialize("Phon",smsPhon)
xomNew.AddAttribute(atrPhon)
xomName.Initialize("name")
xomName.AppendChild(smsName)
xomNew.AppendChild(xomName.ToXML)
DateTime.DateFormat="dd/MM/yyyy HH:mm:ss"
strTime=DateTime.Now
xomTime.Initialize("time")
xomTime.AppendChild(strTime)
xomNew.AppendChild(xomTime.ToXML)
If smsWWW<>"" Then
xomWWW.Initialize("www")
xomWWW.AppendChild(smsWWW)
xomNew.AppendChild(xomWWW.ToXML)
End If
If smsComent<>"" Then
xomComent.Initialize("coment")
xomComent.AppendChild(smsComent)
xomNew.AppendChild(xomComent.ToXML)
End If
If smsPhon1<>"" Then
xomPhon.Initialize("phone")
atrNum.Initialize("num",smsPhon1)
xomPhon.AddAttribute(atrNum)
xomNew.AppendChild(xomPhon.ToXML)
End If
If smsPhon2<>"" Then
xomPhon.Initialize("phone")
atrNum.Initialize("num",smsPhon2)
xomPhon.AddAttribute(atrNum)
xomNew.AppendChild(xomPhon.ToXML)
End If
If smsPhon3<>"" Then
xomPhon.Initialize("phone")
atrNum.Initialize("num",smsPhon3)
xomPhon.AddAttribute(atrNum)
xomNew.AppendChild(xomPhon.ToXML)
End If
Log(xomNew.ToXML)
xomObj.AppendChild(xomNew.ToXML)