Can anybody translate a Visual Basic one-liner? (relates to InDesign)

I have been pulling my hair out in trying to get InDesign CS4 to markup selected text with an XML tag. Supposedly this can be done using Visual Basic. Is there anybody out there that could possibly translate this seemingly simply code into AppleScript?

myText.AssociatedXMLElements.Item(1).XMLElements.Add(“break”, myText)

Here is another example:

With myTSRangeText.AssociatedXMLElements.Item(1).Parent.XMLElements.Add(“znak”)¨ Call .Markup(myTSRangeText)¨End With

I am still thinking that AS cannot do this. but it is worth a shot to ask.