• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xml for programming language

 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
xslt is fine. I can see some construts in Ant. Where else have you seen xml being used as a programming language.
 
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1241
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic