W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2007

Re: Creating a HTML document

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 24 Jul 2007 01:53:22 +0200
To: "Samuel" <samuel@socal.rr.com>
Cc: <www-dom@w3.org>
Message-ID: <p9faa31599p58qri22hnft1a4q1jt65j3h@hive.bjoern.hoehrmann.de>

* Samuel wrote:
>I am actually developing my program using Microsoft Visual C++ in a console
>program. Their implementation of the DOM is frustrating. I hope that if I
>have something that shows and/or explains how to do what I need to do using
>the standard that I can match that with the Windows implementation. I hope.

Presumably you are using MSXML. The DOM implementation in MSXML does not
support the HTML DOM, it only supports the MXHTMLWriter which turns SAX
events into HTML syntax. You could use MSHTML instead, which implements
parts of the HTML DOM; Internet Explorer uses MSHTML internally. One
option might be to use MSXML and transform the DOM you built using XSLT
where the XSLT specifies the HTML output method.

As for documentation, MSDN has plenty of examples on how to use MSXML,
but generally any DOM Core tutorial would do. You are probably most in-
terested in the createElement, appendChild, and setAttribute methods.
In any case, a better venue for help would be the microsoft.public.xml
newsgroup on nntp://msnews.microsoft.com or your local NNTP server.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Monday, 23 July 2007 23:53:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 December 2014 20:11:38 UTC