good chemistry is complicated,
and a little bit messy -LW
XML::LibXML problem...by Sinister (Friar)
|on Mar 08, 2002 at 13:35 UTC||Need Help??|
Sinister has asked for the
wisdom of the Perl Monks concerning the following question:
I have a problem regarding XML::LibXML, another great API by Matts.
I have an xml document like this:
The XML above creates a web form through the use of XSLT. The little bit of perl-code is stuffed through ev'l into a closure and the value of the CGI::param("name3") is put into that routine. If 0 returns we show the form again, if 1 returns we continue.
To be nice and informatife, I'd like to tell the user he/she is a stupid user. But I also like to store into my DOM the values to user already submitted. And I want to add another branch to the <form> trunk, holding information on why they failed.
I've tried _a lot_ in adding childs, nodes, childnodes, textchilds, you name it, but I just can't seem to get it done propperly.
I now have a hack, where I do:
This cannot be the purpose of libXML, and it surely is pretty expensive....
Er formait hyarya.
"Field experience is something you don't get until just after you need it."