Re: [libxml-devel] get string position of element

2008-12-13 Thread Charlie Savage
Hey Matt, Okay, there is a way to do this. libxml defines a global locator object: /** * xmlSAXLocator: * * A SAX Locator. */ struct _xmlSAXLocator { const xmlChar *(*getPublicId)(void *ctx); const xmlChar *(*getSystemId)(void *ctx); int (*getLineNumber)(void *ctx); int (*ge

Re: [libxml-devel] get string position of element

2008-12-13 Thread Charlie Savage
Hi Charlie, That's exactly what I mean. Is that possible? What I'd like to do is, parse an xml file and store each node in a flat search index. I want to store the string start/end position with the stored item so when the search returns the item, I can load only that fragment of xml. Some of

Re: [libxml-devel] get string position of element

2008-12-12 Thread Charlie Savage
Hi Matt, I'm using the ruby libxml and have looked at the api/docs but can't find an answer to my question. Which is... is it possible to get the current string position of an element while using the Reader/Parser? Let's see - I'm not sure I understand the question. Do you mean if you are pa

[libxml-devel] get string position of element

2008-12-12 Thread matt mitchell
Hi, I'm using the ruby libxml and have looked at the api/docs but can't find an answer to my question. Which is... is it possible to get the current string position of an element while using the Reader/Parser? Thanks! Matt ___ libxml-devel mailing list