C++ is an Excellent XML development tool - Re: supporting unicode in XML tools
Richard Anderson
rja at arpsolutions.demon.co.uk
Sat Jun 19 08:45:27 BST 1999
> 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 at moodys.com>
To: 'Dirk Germonpre' <dirkg at tectrade.be>; <xml-dev at ic.ac.uk>
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 at ic.ac.uk
> 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 at ic.ac.uk the following message;
> (un)subscribe xml-dev
> To subscribe to the digests, mailto:majordomo at ic.ac.uk the following
message;
> subscribe xml-dev-digest
> List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
>
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
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 at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev
mailing list