[xml] Possible bug in xmlGetNodePath
- From: Ahmed <a hassany gmail com>
- To: xml gnome org
- Subject: [xml] Possible bug in xmlGetNodePath
- Date: Mon, 26 Nov 2012 13:26:02 -0500
Hi All,
I have notice thatÂxmlGetNodePath doesn't return the right path if the same namespace has different prefixes in the document.
For example for calling xmlGetNodePath on any of the following nodes in this document will return "/root/l_0:l1"
/************** Document with multiple prefixes for the same namespace ****************/
/************** End ****************/
However if I use the same prefix for all nodes,ÂxmlGetNodePath will return the correct xpath for each node (/root/ns:l1[1],Â/root/ns:l1[2], etc...)
/************** Document with one prefix per namespace ****************/
/************** End ****************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]