Hi Damian, Thanks a lot, it's working great! This is exactly what I needed and your help is much appreciated.
Regards, Eric On Thu, Oct 6, 2011 at 2:31 PM, Damian Steer <[email protected]> wrote: > > On 6 Oct 2011, at 13:18, Eric Feliksik wrote: > > > Hi Damian, > > > > Thanks a lot for this contribution! I will have time to test this code > next > > week -- It looks good, I almost gave up hope :-) > > No problem. > > > comment says you'd be happier to use stream reader, now it is > > using XMLEventReader -- but isn't this also streaming? It's still not > like > > DOM, right? Maybe i'll be able to escape the event stream (when I > finished > > the relevant RDF/XML sub-part) by throwing an exception -- what do you > > think? (I'm not very experienced with XML processing). > > Oh, ignore that comment. The code would have been a bit cleaner using > XMLStreamReader, but in order to support both I had to use XMLEventReader. > (Streams can be converted to event readers, but not the other way) > > You are correct, both stream. Event reader encapsulates the low level > events of stream reader in event objects, which is nicer in many situations. > > Damian > >
