Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Forms and XML

by Melly (Chaplain)
on Apr 27, 2004 at 15:45 UTC ( [id://348542]=perlquestion: print w/replies, xml ) Need Help??

Melly has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monkees,

I would like to write some form-input to XML, which I will then want the user to be able to search in order to return a list of matching records - any suggestions as to a good module(s) to use for any of this?

Extra points for a module that would allow me to define the form fields via XML (e.g. the values to be used in a select drop-down).

Tom Melly, tom@tomandlu.co.uk

Replies are listed 'Best First'.
Re: Forms and XML
by cyocum (Curate) on Apr 27, 2004 at 15:51 UTC

    I think you are looking for a module that supports the XForms Standard. I did a quick search on CPAN and came up with XML::XForms::Generator. I have not used it but it might be a good place to start.

Re: Forms and XML
by matija (Priest) on Apr 27, 2004 at 15:50 UTC
    How about XML::Smart or XML::Simple?

    They both transform the XML into a tree structure that you can then search pretty simply.

Re: Forms and XML
by jeffa (Bishop) on Apr 27, 2004 at 20:17 UTC
    I have to play Devil's Advocate ... why do you need XML to do this? Why not store the results in a relational database or SQLite instead? Those are much easier to search, via SQL.

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://348542]
Approved by matija
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-04-23 10:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found