Can someone please tell me if I can create an XML Tag in word and how...
After Word is parsed to create an xml document its hard to understand the structure of the export. I need to export a word document to xml so that I can later grab the information I need from the XML.
Here is some code I found which allows me to set an XMLTag for Word:
'---------------------------------------------------------------------------------------
Public Function SetXMLTags(XMLTag As String, XMLText As Variant) As Variant
' Purpose : create the XML tag lines with/without variables
'---------------------------------------------------------------------------------------
If Len(XMLText) = 0 Then
SetXMLTags = "<" & Trim(XMLTag) & " />"
Else
SetXMLTags = "<" & Trim(XMLTag) & ">" & XMLText & "</" & Trim(XMLTag) & ">"
End If
End Function
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks