Re: [xml] xmlgetNodePath differences on Mac/Win32.

On Sat, Nov 10, 2007 at 03:47:30PM +1100, Andrew Nelson wrote:
Dear list,
I am statically compiling libxml into a plugin/dll on both Mac  
(Tiger) and Win32 (XP ProSP2).

I am using binary versions libxml2-2.6.30 (iconv-1.9.2 + zlib-1.2.3)  
on the Win32 platform and libxml2.2.dylib on the Mac.
I am then using a modification of the tree1.c example to print out a  
recursive list of all the node paths in the XML file.


     for (cur_node = a_node; cur_node ; cur_node = cur_node->next) {
         if (cur_node->type == XML_ELEMENT_NODE) {
                      path = xmlGetNodePath(cur_node);


However, the xmlChar string from xmlGetNodePath() on Win32 and Mac is  
different!  On Mac I get something like:


on Win32 I get


For me the second is useless, is there something I have forgotten to  
do on win32?  Or can anyone suggest code to get the same results I  
get on the Mac?

  on the Windows version you used a different document with a default
namespace. Your test is bogus,


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]