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

Re: XML should NOT be a new programming language


java in xml

On 02/03/2002 16:22:36 Niels Peter Strandberg wrote:

>Why do we use XML to validate, manipulate, transform etc. other XML
>documents, fragments?

Because XML sources are easier to process and manipulate.  It's much easier to write an application to modify a set of XSL-T scripts than a set of Java sources.  OK, people may not do this so much right now, but that is mainly because text-based languages make it so hard, and text-based languages are what most people are stuck with at present.

>I want to do my work in Java or another language, not a XML "language"
>like XSLT, XML Schema etc. The XML "languages" contains a lot of noise
>and duplicated information. Just try build a fairly large XSL
>stylesheet, an it will fast be hard to read. My favorite IDE do not
>support manipulating XML documents.

Then  your favourite IDE is a poor choice for this work.  Don't be afraid to admit that.  As a long time Emacs user, I now freely admit that I don't think text editors are a good way to edit XML, XSL-T, etc.  Really, the syntaxes we have for C, C++, Java, Python, etc. are the syntaxes you get when people use text editors, and approach life as though text editors are the be-all and end-all of editing.  There isn't a problem with XSL-T having an XML syntax, unless you insist on using a text editor to edit it.  I mean, you can use one if you want, but of course you will end up feeling like you need to complain to somebody.

>We have Java, C++ etc. We have if-else, while, switch etc. We can do
>classes, compile ......... We don't we use them??

As above, you lose the ability to easily parse and manipulate the sources.  I can't think of a good reason for making the code sources so much harder to parse and manipulate than the data.

>I want XML in Java!

I want my Java in XML.  I've asked Sun folks about this in the past, but not enough of them use decent XML editors, so they haven't yet taken it seriously.  It would make it much easier to produce custom Javadoc than writing a Doclets, while also providing more information than the Doclet API provides.

     Cheers,
          Tony.
========
Anthony B. Coates
XML Architect
Chief Technology Office
Reuters Plc, London.
Tony.Coates@r...
========



-------------------------------------------------------------- --
        Visit our Internet site at http://www.reuters.com

Any views expressed in this message are those of  the  individual
sender,  except  where  the sender specifically states them to be
the views of Reuters Ltd.

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.