Re: How to retrieve a WebTable from within a W ebForm

"O'Halloran, Leonard" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <AE2C703734684644A876D5475198D837671C33@MSGGALCLA2WIN.DMN1.FMR.COM>
Hi Tim,

 

It's not valid XML so a parser isn't an option. I tried running Tidy on it
but that wasn't successful either. Right now Im doing lots of messy string
manipulation on the string representation of the form (which contains the
table) I can retrieve because it has an Id. 

 

tagsoup sounds interesting, Il look it up,

 

Thanks,

L

 

 

 

  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Tim
Diggins (Subs)
Sent: Wednesday, November 14, 2007 3:24 PM
To: Discussion of use and development of HttpUnit
Subject: Re: [Httpunit-develop] How to retrieve a WebTable from within a
WebForm

 

if it is valid xml (or xhtml) then you could get the string and then use an
xml parser to walk through it. I guess that's kind of obvious.

However, there is also an interesting looking opensource parser tagsoup
(haven't used) that, as the name implies, can parse partially valid html...
and you can then use xml methods (maybe even xpath, I'm not sure) to walk
through it. 

-- Tim

- Show quoted text -

On 14/11/2007, O'Halloran, Leonard <[email protected]
<mailto:[email protected]> > wrote:



- Show quoted text -

Hi Graeme, 

That will just return the Top Level tables in the page. The table I want to
reference is not at the top level, its buried deep in the document inside
another table (and then inside a Form) so I don't think using that method
will solve my problem. 

Thanks, 
L

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.