Java Programming Markup Language

JPML is a proposed programming language for the platform jvm (Java Virtual Machine) based on standard XML (eXtensible Markup Language).
JPML e' la proposta di un linguaggio di programmazione per la piattaforma jvm (Java Virtual Machine) basato sullo standard XML(eXtensible Markup Language).

Go to pages Sourceforge of this project >>

JPML provides for the establishment of special XML tags that correspond one to one with the language constructs of Java.
JPML prevede la definizione di appositi tag XML che corrisponderanno uno a uno con i costrutti del linguaggio java.

Construct of Java <=> Tag of JPML
package jpml.try; <=> <package name="jpml.try" />
interface Example {

<=> <interface name="Example" >

public static int main(String[] args) {

<=> <method type="int" name="main"
 scope="public" static="yes" >
 <formalParam type="String[]"
  name='args' />
 <block> … </block>
if (num=3) { … } <=> <if test="%{num=3}" > … </if>
while (num<10) {

<=> <while test='%{num&lt;10}' >

/* … */ <=> <!-- … -->

Note: That content in %{ } is an expression.

Go to pages List Tags JPML >>

Special Tag of JPML

  1. The tag <scriptlet>…</scriptlet> is anticipated to insert code java in the files JPML.
    È previsto il tag <scriptlet>…</scriptlet> per inserire codice java nei file JPML.
  2. Tags are anticipated to facilitate the writings of file/stream xml.
    Sono previsti tag per facilitare la scritture di file/stream xml.
  3. There is a proposal to give the possibility for the user to define additional tags.
    C’è la proposta di dare la possibilità da parte del utente di definire ulteriori tag.

Example of the use of special tags for writing file/stream xml

<instanze type='' var='file' >
<outxml out="file" xmlns:h="">
  <outxml_processinginst target="xml" version="1.0" encoding="UTF-8" />
  <outxml_doctype rootElement="html“
      publicIdentifier="-//W3C//DTD HTML 4.01 Transitional//EN“
      uRIreference="" />
      <h:meta http-equiv="Content-Type“
        content="text/html; charset=ISO-8859-1" />
      <h:title>Generate file</h:title>
      hello word!!! 3*6=%{3*6}
      <for init='%{int i=0}‘ while='%{i&lt;5}‘ repeat='%{i++}' >
<invoke object="file" method="flush" />
<invoke object="file" method="close" />