Inserting words to inDesign via XML STRUCTURE

In the attached script I am walking through the XML structure and finding all instances of the “WebID” xml element. I am then trying to Add the words “Web ID” to the existing number that is in this element and then change the character style. Finally closing the structure window.

I am successful at the step through, selection, the change of the paragraph style and closing the window but any code I try to add the words "Web ID’ is unsuccessful. Usually I get the not permitted error.
Any help would be greatly appreciated.

tell application “Adobe InDesign CS4”
tell active document
set theRoot to (item 1 of XML elements)
end tell
end tell
myLoopLoop(theRoot)

property myLoLoV : {}
property myHoHoV : {}
on myLoopLoop(myElement)

tell application "Adobe InDesign CS4"
	tell active document
		set moreElement to every XML element of myElement
		repeat with x from 1 to (count of moreElement)
			set em1 to item x of moreElement
			select em1
			if {name of markup tag of em1 starts with "WebID"} then
				set em2 to em1
				set properties of view preferences to {horizontal measurement units:inches, vertical measurement units:inches, ruler origin:page origin}
				set transform reference point of layout window 1 to top left anchor
				select em2
				tell application "Adobe InDesign CS4"
					add word "WEB ID"
				end tell
				tell application "Adobe InDesign CS4"
					tell document 1
						set theStyle to character style "Bold lead-in/sale price"
						set applied character style of text of selection to theStyle
					end tell
				end tell
				
			end if
			tell me to myLoopLoop(item x of moreElement)
		end repeat
	end tell
end tell

end myLoopLoop
tell application “Adobe InDesign CS4”
activate
set myDocument to document 1
tell myDocument
tell XML view preferences
if show structure is equal to true then
set show structure to false
else
set show structure to true
end if
end tell
end tell
end tell
on «event coVScliI» theObject
(Add your script here.)
end «event coVScliI»