I am relatively new to eXist-db. I have already built an application which displays XML documents in the browser, and implemented a basic search.
I have an .xml file which functions as a database; it contains records such as:
<person xml:id="pe0001"> <persName> <surname>Name</surname> <forename>Surname</forename> </persName> </person>
I would like to be able to edit this file via the browser; for instance, edit a person's name, or add a new record.
I have gone through eXist-db documentation, looked at the examples, read wikibooks - I haven't found what I need yet. I just need a text area in which someone can input/edit some text which will be pushed (using PUT, I guess) into the .xml file.
Is XSLTForms the best option for me? Could anyone be so kind to give me some sort of direction/suggestion/example? Thanks!
Thanks for the downvote :) . Anyway, I have created a .xq file which grabs the id of the node I want to edit with
and then returns this html code:
head
body
Once edited the text, the user submits it via the following button: