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    [EMAIL PROTECTED]    http://www.spinn.net/~sburke/

Reply via email to