XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 13th, 2002, 10:00 AM
jugatsu jugatsu is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 1 jugatsu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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 & & d == day
</condition>

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

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

<condition>
month > -1 & & day <= -1
</condition>
</condition>

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

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

</if>
<else>
return;
</else>
</javaCode>

Reply With Quote
  #2  
Old May 26th, 2002, 02:04 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
What exactly are you trying to achieve here?
__________________
Alex
(http://www.alex-greg.com)

Reply With Quote
  #3  
Old May 30th, 2002, 02:47 AM
sylow sylow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Alkmaar
Posts: 96 sylow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 10 m 41 sec
Reputation Power: 8
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.
__________________
Sylow Web Development and Design
Web Developer

Reply With Quote
  #4  
Old June 7th, 2002, 08:03 AM
binky's Avatar
binky binky is offline
Gerbil
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2001
Location: In a Rotastak
Posts: 1,763 binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 22 h 12 m 52 sec
Reputation Power: 18
Quote:
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.
__________________
- Sorted!

www.ppfuk.com - Free Photo Sharing

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Urgent NEED HELP!!!convert Java script to xml


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway