• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xml api for runtime modification

 
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic