XML to HTML forms?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
yjanni
Forum Newbie
Posts: 8
Joined: Wed May 22, 2002 3:17 pm

XML to HTML forms?

Post by yjanni »

How to easily convert XML data into forms and back to XML?

Ok I am doing simple stuff. Web page content editing.
I have my 'no-mySQL or PEAR or anything' webspace provider.
I want flat file. I want structured data. XML & PHP. So I have to use an 'separate' XML parser. But I think this XML parser is sorted out..

The real problems is how to 'transform' the XML data into forms? There are
so many different types of XML-docs that I cannot make separate form for
each, so I'm thinking ok, something that converts the XML data into HMTL
form, which can be then edited, and submitted. Finally the submitted data
needs to be written back into an XML file.

Also - at the moment I have nothing that would write the data back into
XML. Any ideas? Or generally XML parsing/writing recommendations?


Thanks
Jani
:)
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

I found some good help pages here.
yjanni
Forum Newbie
Posts: 8
Joined: Wed May 22, 2002 3:17 pm

Post by yjanni »

thanks... you know I am just lazy and want to annoy you... :D

I've decided I will build my own ultra compact cms-system,
php-xml-xsl-xhtml..

I am going to use ActiveLink PHP XML Package 0.16 for XML, parsing and
editing trees, string out. Do you think this is an good idea?
(http://www.hotscripts.com/Detailed/20918.html)

For XSL transforming I was thinking of using the, surprise, XSLtransformer:
http://www.phpclasses.org/browse.html/package/498.html
Anyone with experience of it or any others like it?

I still havent found the suitable classes for form generating. People seem to
have made it more complicated than it is :D maybe I should just code
my own...
Post Reply