From: mayayana on
Does anyone have good links for MSXML
sample code? I need to parse XML files
and convert to HTML with a somewhat
different format. It may be easier just
to parse the strings, but I figure that
MSXML is worth a look if I don't have to
start from scratch.


From: Mark Pryor on
On Thu, 25 Mar 2010 14:01:39 -0500, mayayana wrote:

> Does anyone have good links for MSXML sample code? I need to parse XML
> files and convert to HTML with a somewhat
> different format. It may be easier just to parse the strings, but I
> figure that MSXML is worth a look if I don't have to start from scratch.

progid4:{F5078F18-
C551-11D3-89B9-0000F81FE221}:3.0.FreeThreadedDOMDocument30

The msxml3 in the above class has a transformNode method where an xsl
(stylesheet) is used to transform an xml file into (presumably) an html
file. If you follow the help link in the msxml3 chm they have an example,
but it uses jscript.

How often is an xml paired with an xsl? Maybe take a look at a few xsl
files and try and adapt one to work with your data.

--
Mark
From: mayayana on
Thanks, but I wasn't actually converting XML
directly to HTML. I was converting Help 2
XML files to HTML Help index and TOC
files. I'm interested in general usage classes
or samples that would save the time of having
to work out all of my own basic routines for
parsing an XML file into usable data.

>
> > Does anyone have good links for MSXML sample code? I need to parse XML
> > files and convert to HTML with a somewhat
> > different format. It may be easier just to parse the strings, but I
> > figure that MSXML is worth a look if I don't have to start from scratch.
>
> progid4:{F5078F18-
> C551-11D3-89B9-0000F81FE221}:3.0.FreeThreadedDOMDocument30
>
> The msxml3 in the above class has a transformNode method where an xsl
> (stylesheet) is used to transform an xml file into (presumably) an html
> file. If you follow the help link in the msxml3 chm they have an example,
> but it uses jscript.
>
> How often is an xml paired with an xsl? Maybe take a look at a few xsl
> files and try and adapt one to work with your data.
>
> --
> Mark