Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / July 2008

Tip: Looking for answers? Try searching our database.

XML Modification

Thread view: 
jmtrg@hotmail.fr - 03 Jul 2008 16:23 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.