[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

C++ is an Excellent XML development tool - Re: supporting unicode in XML

  • 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

c xml createelement
> 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...)



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.