+ Reply to Thread
Results 1 to 2 of 2

How can i create an XML Tag in word?

Hybrid View

  1. #1
    Registered User
    Join Date
    07-17-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Red face How can i create an XML Tag in word?

    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.

  2. #2
    Registered User
    Join Date
    12-09-2009
    Location
    Washington, DC
    MS-Off Ver
    Excel 2002
    Posts
    2

    Re: How can i create an XML Tag in word?

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1