[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Richard Anderson" <rja@a...>
  • To: "DuCharme, Robert" <DuCharmR@m...>,"'Dirk Germonpre'" <dirkg@t...>,<xml-dev@i...>
  • Date: Sat, 19 Jun 1999 07:42:44 +0100

> It will be easier with Java. See Matthew Fuch's article "Why XML Is
> Meant for Java" at http://www.xml.com/xml/pub/1999/06/fuchs/fuchs.html
> for background.

That statement is not really true. Sure, if you've got a Java background it
might be easier, but the articles seems to gloss over any detailed
comparision of modern C++ XML tools likes IBMs and ours, or, langauges like
VB, which to a lesser degree I understand.

I think Java is great but..

Anybody with a C++ *will* find it easier using C++ tools and get the huge
performance benefits to boot.

In the MS world I live in mostly, VB *is* the easiest tool for XML
development unless this is complicated:

Dim xmlfile As DOMDocument
Dim contacts As DOMElement
Dim contact As DOMElement

Set xmlfile = New DOMDocument
Set contacts = xmlfile.createElement("Contacts")
xmlfile.appendChild contacts
xmlfile.save ("C:\test2.xml")

In C++ I just write this to create an XML document:

   DOMDocument *pDoc;
   pDoc = createDOMDocument();

   pText = pDoc->createElement( L"Contacts");
   pDoc>appendChild( pText );

   saveDOMDocumentToFile( pDoc,
                          L"simple_utf16.xml",
                          L"UTF-16" );
    pDoc->release();

Is that so hard for a C++ programmer ?

These code snippets are based on our products but the MS/IBM implementations
are bound to be as simple.

Just my 2$

Richard.
http://www.vivid-creations.com
Home of various cross-platform/langauge XML tools




----- Original Message -----
From: DuCharme, Robert <DuCharmR@m...>
To: 'Dirk Germonpre' <dirkg@t...>; <xml-dev@i...>
Sent: Friday, June 18, 1999 7:47 PM
Subject: RE: supporting unicode in XML tools


> >I'm going to write some XML tools. How can I support both UTF-8 and
> UTF-16
> >at the same time? Am I better of writing XML software in C++ or Java
> with
> >respect to supporting unicode?
>
> It will be easier with Java. See Matthew Fuch's article "Why XML Is
> Meant for Java" at http://www.xml.com/xml/pub/1999/06/fuchs/fuchs.html
> for background.
>
> Bob DuCharme       www.snee.com/bob       <bob@
> snee.com>  see www.snee.com/bob/xmlann for "XML:
> The Annotated Specification" from Prentice Hall.
>
> xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
> Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on
CD-ROM/ISBN 981-02-3594-1
> To (un)subscribe, mailto:majordomo@i... the following message;
> (un)subscribe xml-dev
> To subscribe to the digests, mailto:majordomo@i... the following
message;
> subscribe xml-dev-digest
> List coordinator, Henry Rzepa (mailto:rzepa@i...)
>


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member