XML data to and from HTML form

I store data in XML databases. Now I want users to be able to edit certain posts. For instance. my db might look like this:

<items> <item id="1"> <prop_a>some text</prop_a> <prop_b>TRUE</prop_b> <prop_c>29.01.2010</prop_c> ... </item> // next item and so on 

Is there a tool that can generate an html form (for which it will certainly need additional information, for example, which fields are text fields, which can be check boxes or drop-down fields, whatever), fill it with data for one record (this will everything be in <item> ), and also take user input (GET / POST content) and convert it back to XML? Perhaps it can even do some checks, perhaps through a callback function. (I would prefer something free in PHP to make the wish list complete :)

+4
source share
1 answer

You can use the XSLT document to convert this XML to HTML.

+3
source

Source: https://habr.com/ru/post/1299752/


All Articles