#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Posts
    1
    Rep Power
    0

    Urgent NEED HELP!!!convert Java script to xml


    Hi bros,,,

    sorry to bother you guys but i really need help in convert Java script to xml. Thank you,,


    1)Convert java to XML

    if ((m == month && d == day) ||
    (month == -1 && d == day) ||
    (m == month && day == -1) ||
    (month > -1 && day <= -1))
    {
    resultDay = "DATE: D" + d +m" + m;
    processChildNodes(dateElement.getChildNodes());
    }
    else
    return;


    2) Convert java to XML

    <javaCode>
    <if>
    <condition>
    <condition>
    m == month &amp; &amp; d == day
    </condition>

    <condition>
    month == -1 &amp; &amp; d == day
    </condition>

    <condition>
    m == month &amp; &amp; day == -1
    </condition>

    <condition>
    month &gt; -1 &amp; &amp; day &lt;= -1
    </condition>
    </condition>

    <statement>
    resultDay = "DATE" + d + "M" + m;
    </statement>

    <statement>
    processChildNodes(dateElement.getChildNodes());
    </statement>

    </if>
    <else>
    return;
    </else>
    </javaCode>
  2. #2
  3. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    17
    What exactly are you trying to achieve here?
    Alex
    (http://www.alex-greg.com)
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    Alkmaar
    Posts
    96
    Rep Power
    14
    I am curious as well. What is happening here?

    And a remark: You can write JScript or Javascript but it is not Java or Java Script.
  6. #4
  7. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Oct 2001
    Location
    New Zealand
    Posts
    1,774
    Rep Power
    24
    And a remark: You can write JScript or Javascript but it is not Java or Java Script.
    JScript and JavaScript are not one and the same either. You could write ECMAscript or ECMA-262 if you really want to get down to the point.

    ECMA (European Computer Manufacturers Association)script.
    JScript is the Microsoft version of this... and JavaScript is the Netscape version (via livescript). Java is the language created by Sun Microsystems, but is not related to JavaScript other than Netscape used the term Java because it was a buzz word.

IMN logo majestic logo threadwatch logo seochat tools logo