Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Dom or Sax parser need some expertise help

Dom or Sax parser need some expertise help

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Dom or Sax parser need some expertise help

Postby finucas » Mon Jul 26, 2010 2:19 pm

I have created a sax parser to parse a html file, it worked fine but i now have discovered i need more data then i think i can manage to find with the sax parser.

Firstly i have to find where the tag <div id="main_content_course"> begins
but after this node there may be internal div tags, so my problem is i have to find out where this </div> ends
and collect all the data between, including all the tags in-between, with sax parser i can find the start of this tag but
to find out where it ends? i could possibly do a <div> count and basically and try and figure out when it closes but this seems messy, also the accumulator in the sax parser grabs everything but the tags between my <div> and </div> so i have a very unstructured result when passing it to webview to display.

Question: i have no experience with DOM parer and aseen as it seems to store data in a tree structure do you think it will work for my problem?, i.e find where a certain div tag begins and ends and grab everything inbetween.

Thanks.
Sean.
finucas
Freshman
Freshman
 
Posts: 6
Joined: Tue Jul 13, 2010 4:26 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 4 guests