Author
|
Topic: XML Scripting Help
|
IceHawk78
NOBODY IMPORTANT
Member # 1699
Member Rated:
|
posted 02-11-2005 02:51 PM
Alrighty, I know this forum's filled with geeks and shit, so I need someone who can either tell me how to write an XML script to do this or just to generate the script for me:
code:
input XML1; write XML1 -> XML3; for (int i=0; i<XML2.numlines; i++) for (int j=0; j<XML3.numlines; j++) if (XML2.line(i).variable1 < XML3.line(j).variable1) { write XML2.line(i) between XML3.line(j-1) and XML3.line(j); break; }
Basically, I just don't know what the syntax for doing that with XML would be.
From: Ohio | Registered: Apr 2001
| IP: Logged
|
|
Lark84
My skeleton is made of creamy nougat.
Member # 1186
Member Rated:
|
posted 02-11-2005 03:09 PM
I can't help you.
With that out of the way, on to a question which popped up in my head while reading this.
Isn't XML designed to be whatever the person writing it decides it to be?
code:
<plants> <fruit> Apple </fruit> <vegetable> Cucumber </vegetable> </plants>
In other words, does such a thing as "XML scripting" exist? Does one not need to define which particular XML "dialect" (I'm sure there's a more appropriate word) one is using?
Does XML even do things like for and ifs? Is it not just a data structuring language?
Sorry for not being able to help out...
Registered: Nov 2000
| IP: Logged
|
|
MewtwoSama
Asshole
Member # 12
Member Rated:
|
posted 02-11-2005 03:11 PM
In today's Macguyver, Mac takes on Chinese conspiracists
- - - - - Hade ni ikuze!
From: Abyss of Evil | Registered: Feb 2000
| IP: Logged
|
|
Mr. K
Racist
Member # 2
Member Rated:
|
posted 02-11-2005 09:04 PM
he defeats them with a candy bar, some butt hair, and a melon
From: Cinnabar Island | Registered: Feb 2000
| IP: Logged
|
|