https://github.com/racker/node-elementtree has worked quite well in my
experience.

One catch I've found is that absolute XPath expressions don't work, so
instead of:

xmlDoc.get("/paymentService/reply/error")

would need to say

xmlDoc._root.get("paymentService/reply/error")

Other than that (which is probably an easy patch, but I think they want to
maintain API compatibility with the python source library), it's been fine.

Andrew

On 18 July 2012 07:27, Angelo Chen <[email protected]> wrote:

> Hi,
>
> is there such xml parser exists? js based. my need is simple,
> something like this in libxmljs:
>
> xmlDoc = libxmljs.parseXmlString(xml)
>   s = xmlDoc.get("/paymentService/reply/error")
>
> problem with libxmljs is, difficult to get it installed, any ideas?
>
> Thanks,
>
> Angelo
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to