View Single Post
  #1 (permalink)  
Old February 27th, 2006, 12:17 PM
saebe saebe is offline
Registered User
 
Join Date: Feb 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
:)
Reply With Quote