Ok, I have an interesting page that shouldnt be all that hard to parse, but I don't really understand how this works. I have an xml page that contains an article about something. the root object is called <article> and then it has <page>'s and <sections>.
Those shouldn't be the hard ones, the hard one seems like it will be this...
I have a <table> element that works almost exactly like the <table> in html, but mine has to be able to do some certain things. One of them is that it has a highlight attribute that if it is set to 1 then cells will be highlighted when you mouseover them. My problem is that with an event based parser, how will you know if the <table> had hightlight set to 1?
Here is an example:
<table hightlight="1" title="Data values">
<row><header>name</header><header>number</header></row>
<row><data>Me</data><data>3</data>
...
</table>
Also, my sections and stuff have numbers in them, so this table might be 0.0.0 if it was the first table in the first section on the first page, or 0.1.0 if it was the first table in the second section of the first page. How could I get it to remember what numbers I am on? especialy if tables are nested?
Thanks a lot.
~evlich
Those shouldn't be the hard ones, the hard one seems like it will be this...
I have a <table> element that works almost exactly like the <table> in html, but mine has to be able to do some certain things. One of them is that it has a highlight attribute that if it is set to 1 then cells will be highlighted when you mouseover them. My problem is that with an event based parser, how will you know if the <table> had hightlight set to 1?
Here is an example:
<table hightlight="1" title="Data values">
<row><header>name</header><header>number</header></row>
<row><data>Me</data><data>3</data>
...
</table>
Also, my sections and stuff have numbers in them, so this table might be 0.0.0 if it was the first table in the first section on the first page, or 0.1.0 if it was the first table in the second section of the first page. How could I get it to remember what numbers I am on? especialy if tables are nested?
Thanks a lot.
~evlich
Comment