I believe what's in the links (and other threads you could find with a search) are indeed relevant to your problem, but you don't understand it.
Try the following:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim wdTbl As Table, wdCell As Cell, Rng1 As Range, Rng2 As Range
With ActiveDocument
For Each wdTbl In .Tables
For Each wdCell In wdTbl.Range.Cells
Set Rng1 = wdCell.Range
Rng1.End = Rng1.End - 1
If Rng1.Font.Bold = True Then
Set Rng2 = wdCell.Next.Range
Rng2.End = Rng2.End - 1
Select Case Rng1.Text
Case "Name": Rng2.InsertBefore "<name>": Rng2.InsertAfter "</name>"
Case "ID.": Rng2.InsertBefore "<ID>": Rng2.InsertAfter "</ID>"
Case Else
End Select
End If
Next
Next
End With
Application.ScreenUpdating = True
End Sub
Basically, the above code goes through all tables in the document, looking for cells with 'Name' or 'ID.' as their text, then adds tags (not necessarily xml) before & after whatever's in the next cell.