wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes xml for programming language Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml for programming language" Watch "xml for programming language" New topic
Author

xml for programming language

Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
xslt is fine. I can see some construts in Ant. Where else have you seen xml being used as a programming language.
Kishore Dandu
Ranch Hand

Joined: Jul 10, 2001
Posts: 1934
I don't get your question in a true sense.

Isn't it used everywhere now-a-days. It is used to handshake with heterogenous systems when the handshake is data communication.

It is also used for properties setup for app servers etc.

There are tons of other uses that are being adopted everywhere..


Kishore
SCJP, blog
Jayesh Lalwani
Ranch Hand

Joined: Nov 05, 2004
Posts: 502
You mean using xml tags to construct for loops and such?

Isnt that what JSP going towards?


[ February 04, 2005: Message edited by: Jayesh Lalwani ]
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
Originally posted by Jayesh Lalwani:
You mean using xml tags to construct for loops and such?
[ February 04, 2005: Message edited by: Jayesh Lalwani ]


Yes, ability to define methods, control structures etc using xml.
Jayesh Lalwani
Ranch Hand

Joined: Nov 05, 2004
Posts: 502
Originally posted by Karthik Guru:


Yes, ability to define methods, control structures etc using xml.


Well, as I said earlier in JSP you can have for loops, whie loos and if conditions. But, you can't declare methods and data structures(although you can think of custom tags as methods)

I don't know if there is a full-fledged programming language that is coded in XML.

I wonder why anyone would need that
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Originally posted by Karthik Guru:


Yes, ability to define methods, control structures etc using xml.


Just to clarify, XML is not a programming language like C, C++ or Java or other languages. Its a way to represent data, more like a text file with a certain structure to it. So my answer to your question is no, you can't use XML to define methods, control structures like you do in C++ or Java in a sense of programming languages. Well, maybe more like a self-describing control structure for data. The control structure definition itself being defined in a Schema file or a DTD file.

- m


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
We have a home grown framework that uses xml to express usual programming language constructs. So you have these verbose <IF:TEST><THEN> and verbose xml tags for control structures etc. The code is'nt very readable. It is also based on xpath like xsl. So i was wondering if there are more frameworks out there that base their scripting language on xml.
Yeah jstl could be an example.
Dave Lenton
Ranch Hand

Joined: Jan 20, 2005
Posts: 1241
Originally posted by Madhav Lakkapragada:
So my answer to your question is no, you can't use XML to define methods, control structures like you do in C++ or Java in a sense of programming languages.


While its debatable if it is or isn't a proper programming language, XSLT could be described as a programming language which has almost-methods (e.g. xsl:template) and control structures (e.g. xsl:choose, xsl:if etc), and is also at the same time an XML file.


There will be glitches in my transition from being a saloon bar sage to a world statesman. - Tony Banks
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Originally posted by Dave Lenton:


While its debatable if it is or isn't a proper programming language, XSLT could be described as a programming language which has almost-methods (e.g. xsl:template) and control structures (e.g. xsl:choose, xsl:if etc), and is also at the same time an XML file.


XSLT, I agree can be considered more like a programming language. However, regarding XML, I could be missing, but AFAIK, I would say its more like a text/data file. On its own it doesn't need to have a whole lot of programming language feel. Its the application that interprets the data in the XML file that makes it more useful.

- m
 
Don't get me started about those stupid light bulbs.
 
subject: xml for programming language
 
Similar Threads
Can I use java in XML file?
Read properties file in xml
need information on webservices
A special thanks to Carl Trusiak
AOP