XML parsing, hierarchy?!
Hello there
Does anyone have some samples how to parse an XML file?
I need to parse line by line objects according to a certain page
and get its word objs:
Part of XML file looks like that (simplified):
<?xml version="1.0" encoding="ISO-8859-1" ?>
<docinfo>
<page>
<sop p="2" />
<flow>
<block>
<line>
<word space="0">page2a</word>
</line>
<line>
<word space="0">page2b</word>
</line>
</block>
</flow>
<eop />
</page>
...
could anyone help, please?
cheers.
:)
|