JavaScript and XML

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

JavaScript and XML

Post by Calimero »

Just a Q about whether JavaScript can be used for:
1) searching
2) extracting - for display, some parts of xml document
3) And, is that done, by matching <TAGS> and </TAGS> or by some other technique.

I looked at the structure of the XML doc's, but never came across the app that actually searches - I'm a guy that preffer to learn from/by examples.

Tnks Ahead!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it's impractical to use Javascript to parse an xml file. Javascript wasn't exactly designed to process text data like that.
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

...

Post by Calimero »

Any other language - what to use, and is it client side, or server side ?!?!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

use php or perl, both are built well for file manipulation.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

or python or, of course, XSLT.
Post Reply