Ask a Question related to PERL Modules, Design and Development.
-
julien #1
[HTML::Element] how to read element by element
Hello
I read the doc about HTML::Element, but I don't find how to read the
tree create by parse() element by element. The doc says the tree looks like:
element #1: _tag: 'html'
_parent: none
_content: [element #2, element #5]
lang: 'en-US'
element #2: _tag: 'head'
_parent: element #1
_content: [element #3, element #4]
element #3: _tag: 'title'
_parent: element #2
_content: [text segment "Stuff"]
element #4 _tag: 'meta'
_parent: element #2
_content: none
name: author
content: Jojo
element #5 _tag: 'body'
_parent: element #1
_content: [element #6]
element #6 _tag: 'h1'
_parent: element #5
_content: [text segment "I like potatoes"]
But, How can I access to element #2, element #5._content, ...?
Thank you
Julien
julien Guest
-
Handling HTML element events using AxWebBrowser
Hello, I am trying to hook into the events for HTML textboxes. In particular the onchange event. In the document complete handler I attach a... -
HTML::Element->right/->look_down lose, I need to walk the tree
Consider this HTML::Element dump of a simple HTML page: <html> @0 <head> @0.0 <title> @0.0.0 "HTML::Element test" <body> @0.1 <div> @0.1.0... -
How to *modify* text in HTML::Element
Sorry for the repost, I hit Send too soon. I am using HTML::TreeBuilder to futz with some HTML, and I need to modify the text of some of the... -
How to text in HTML::Element
I am using HTML::TreeBuilder to futz with some HTML, and I need to modify the text of some of the HTML::Elements. But I use can't find an easy way... -
Value of an HTML element
I have a HTML text box (NOT a TextBox server control) in a .aspx page and a button server control. Is it possible with ASP.NET to get the value of... -
Terrence Brannon #2
Re: [HTML::Element] how to read element by element
"julien" <julien@sobrier.net> wrote in message
news:3f5926cc$0$28880$626a54ce@news.free.fr...It sounds like you are talking about the traverse method. Also, you usually> Hello
> I read the doc about HTML::Element, but I don't find how to read the
> tree create by parse() element by element.
don't want to read a tree element by element.
See look_down(). It is probably more useful. Also see objectify_text().
Terrence Brannon Guest



Reply With Quote

