On Thursday 16 May 2002 6:20 pm, Michael A Nachbaur wrote:
> I've been using XML::XPath for this, and although its a tad slow, it's
> been working fine for me.  But now I'm processing 150k+ XML documents,
> and XML::XPath takes *forever* to do some of the simplest operations.

It's really slow if you use //. Otherwise it's not too bad.

> Right now I'm taking a sledge-hammer approach.  I'm trying to find an
> element by an ID.  I haven't been able to get the id() XPath function
> and getElementById subroutine to work, so I'm doing a
> //node()[@id='$id']...yuck.

yuck indeed. For id() to work you need the attribute defined as an ID type in 
the local subset:

<!DOCTYPE foo [
  <!ATTLIST foo id ID #IMPLIED>
]>
<foo id="bar"/>

> a) Does anyone have any idea on how I can get XML::LibXML to work along
> side AxKit?

I'll leave this one to Christian Glahn, who's now maintaining that module.

> Thanks everyone, and sorry for the spam.

Spam? So it's *you* sending it all eh? I hope that Nigerian Scam is making you 
a lot of money, because it's driving me nuts.

Matt.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to