9.7. Exercises

9.1 XML syntax for programming language: Develop an XML language for writing programs (perhaps we'll call it Xperanto). To get you started, here's a possible syntax for a variable declaration:

<variable>
   <name>i</name>
   <type>integer</type>
   <initialvalue>0</initialvalue>
</variable>

9.2 XML conversion to program code: Write a simple program using this format, and then use XSLT to convert the program to a variety of languages (such as Java and COBOL). Is the program you just wrote code, or data? If all programs were written this way, could all the world's software be replaced with just a single XML processor? For extra credit, write an operating system in this XML language. Does it boot faster or slower than Windows?

9.3 Conference ...

Get J2EE™ and JAX™: Developing Web Applications and Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.