develooper Front page | perl.libwww | Postings from June 2000

Re: HTML::Form patch, adds name attribute

Thread Previous | Thread Next
From:
sburke
Date:
June 9, 2000 12:03
Subject:
Re: HTML::Form patch, adds name attribute
Message ID:
200006091904.NAA22477@spinntwo.spinn.net
Edward Jason Riedy wrote:
>[...]
> Jason, who really wishes there were a HTML::DOM (maybe on top of
> HTML::Element?) that would play nice with XML::XPath...

I think it'd be trivial for someone who knew the XML modules (i.e.,
not I, not just now) to write something that'd return an XML clone of
an HTML tree.

(clone_XML would consist of:
 * make an XML node that's a clone of the current node.
 * clone_XML any children of the current node, attaching
    them to the current node's clone.
)

BTW, the DOM makes my head hurt.  Aside from allowing you to
manipulate trees the same in any language, I don't see the point of
the DOM.  I've got the whole spec here and have been trying to read
it, but it's so so foul.

-- 
Sean M. Burke    sburke@cpan.org    http://www.spinn.net/~sburke/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About