At 11:57 AM 04/11/2001 +0800, Sprinna wrote:
>I'm thinking the way to access xml files and insert/update/delete certain
>content of xml elements.
>That is from the browser(ie5+), offing a method to get data(like form in
>html?), according to the data to open the xml file and make
>modification(change text, attribute, or something else).
>Can I? How to fulfill it? Using Javascript? DOM? Java based coding?
You might be interested in a W3C project called XForms. See:
http://www.w3.org/MarkUp/Forms/
As for specific scripting languages....
Recently, I saw information about an ECMAScript (JavaScript) parser called
ESPX. The home page for its current release is at:
http://cjandia.freehomepage.com/me/works/xml/espx/20010212.083/espx.htm
(Note that the version numbers, like the .83 here, seem to go *down* over
time. Previous versions were, in order, .84 .85, .86, etc.)
A while back, IBM's developerWorks site published something called
"Tutorial: XML and scripting languages - Manipulating XML documents with
Perl and other scripting languages." It's at:
http://www-106.ibm.com/developerworks/library/xml-perl/
You mentioned doing stuff client-side, in IE5+. There are tons of examples
on the Microsoft site. Start here:
http://msdn.microsoft.com/xml/default.asp
These include plain-old JavaScript ("JScript") examples, as well as
VBScript, Visual Basic, C++, etc. You might also browse around the VBXML
site, www.vbxml.com.
For other languages/environments (Python, Tcl, more Perl, etc.), you might
want to start at XML.com's "resource guide" to XML and scripting languages.
It's located at:
http://www.xml.com/pub/rg/Scripting_Languages
If you're interested in doing this with Java, well, you're just not looking
hard enough. :)
================================================================
John E. Simpson | "I have a microwave fireplace.... The
http://www.flixml.org | other night I laid down in front of
XML Q&A: www.xml.com | the fire for the evening in two minutes."
| --Steven Wright