I would like to write a Word macro which can read and parse an XML file and
generate Word content from it. The idea is to be able to write documentation
in XML and generate both Word content and HTML from it.
Does anyone know of a way of doing this? Can MSXML be used from VBA for
example? Or has anyone written any VBA subroutines for parsing XML that
they'd be willing to share?
Thanks in advance,
Colin Caughie
Dim paras As MSXML.IXMLDOMNodeList
Set paras = metaHelp.getElementsByTagName("para")
presumably you know how to use the DOM to actually stuff
the info into the WOM?
Hope this helps,
--tim
>.
>
"Colin Caughie" <c.ca...@NOSPAMindigovision.com> wrote in message
news:3bbb0b6b$0$225$ed9e...@reading.news.pipex.net...
Take a look at the documentation in the Microsoft XML SDK. It can be
downloaded here: http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/542/msdncompositedoc.xml
It has a very good help file in the doc directory.
--
Eoin Campbell, Technical Director, XML Workshop Ltd,
10 Greenmount Industrial Estate, Harolds Cross, Dublin 12, IRELAND.
Email: ecam...@xmlw.ie
Phone: +353 1 4547811; Fax: +353 1 4731626
Web: http://www.xmlw.ie/