html to Rose::HTML::Objects

0 views
Skip to first unread message

Daniel Green

unread,
Mar 24, 2010, 9:26:19 AM3/24/10
to Rose::HTML::Objects
Hello,

Is there a way to convert existing HTML into Rose::Html::Objects?

Thank you,
Daniel.

John Siracusa

unread,
Mar 24, 2010, 9:30:28 AM3/24/10
to rose-htm...@googlegroups.com
On Wed, Mar 24, 2010 at 9:26 AM, Daniel Green <octob...@gmail.com> wrote:
> Is there a way to convert existing HTML into Rose::Html::Objects?

No, though I imagine you could create such a thing using an HTML
parser. But what you'd get would be a tree of generic
Rose::HTML::Object objects. Being "smart" about it and instead
creating a tree of more specialized objects (e.g., Rose::HTML::Image,
Rose::HTML::Anchor, Rose::HTML::Form::Field::Text) would be a bit more
difficult. And in either case, in the end, you'd end up with a pretty
heavyweight tree of objects.

What, exactly, are you trying to do?

-John

Reply all
Reply to author
Forward
0 new messages