File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes xml api for runtime modification Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "xml api for runtime modification" Watch "xml api for runtime modification" New topic
Author

xml api for runtime modification

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 758
what is a mature api / solution for this problem ?

1. user always submit XML document from page, the server side need to save this xml data to sql database.

2. user could add/delete field (node) in the Runtime, server side should detect this modification and make change on sql database accordingly.
for example, user add a new field "age", then it should add a new column in database and save this "age" data into database.

3. when retrieving data from database, it will generate xml file base on table metadata .

Thanks.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12269
    
    1
In order to detect a change you will have to parse the input document. The standard Java library for DOM will certainly handle this.

I suggest that you work on understanding DOM parsing outside the client-server environment until you are confident that your code can:

1. Catch badly formed xml.
2. Locate the values of all parts of the document.

Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: xml api for runtime modification
 
Similar Threads
Need Help
Detecting multiple browser windows
Wanted Java J2EE Consultants in Dalton,Georgia
Java, J2EE, Swing/SWT Developer (Work From Home)
Aspose.Total Product Family Q3 2010 Released