hello,
I'd like to allow a user (not tech savvy) to modify certain values on
an XML file. the idea is to give the user a tool that allows him to
perform certain simple tasks such as adding/removing a record, or
modifying a value.
for example the user could change
<Projection proj="before"/>
to
<Projection proj="after"/>
or
<Color .... />
<Color b="0.2" g="0.8" name="background" r="1.0"/>
to
<Color .... />
<Color b="0.2" g="0.8" name="background" r="1.0"/>
<Color b="0.5" g="0.5" name="background" r="0.5"/>
does such a tool already exist? is it possible to do these changes
using an SQL variant?
thanks
Dave Miller - 03 Jul 2008 18:01 GMT
> hello,
>
[quoted text clipped - 20 lines]
>
> thanks
It would seem to me duplicative to use a relational DB to store
information to then rewrite to a data file. I may be missing something,
but it seems that you only to read the file in, parse the xml and add or
change nodes and values. You could even avoid a lot of the front end
coding by using a browser for the user interface.

Signature
Dave Miller
Java Web Hosting at:
http://www.cheap-jsp-hosting.com/
Roedy Green - 04 Jul 2008 20:10 GMT
>does such a tool already exist? is it possible to do these changes
>using an SQL variant?
See http://mindprod.com/jgloss/xml.html
and scan for the word "editor".
The editor may give your user more power than you want -- i.e. ability
to modify all tags, but at least it provides training wheels.
Perhaps you could extract the fields they can change, give them the
editor, then merge back.
Ideally the schema should let you specify some fields as read-only.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com