You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
(157) |
Dec
(87) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(78) |
Feb
(246) |
Mar
(83) |
Apr
(32) |
May
(99) |
Jun
(85) |
Jul
(34) |
Aug
(24) |
Sep
(65) |
Oct
(60) |
Nov
(45) |
Dec
(90) |
2004 |
Jan
(8) |
Feb
(40) |
Mar
(12) |
Apr
(17) |
May
(56) |
Jun
(13) |
Jul
(5) |
Aug
(30) |
Sep
(51) |
Oct
(17) |
Nov
(9) |
Dec
(20) |
2005 |
Jan
(16) |
Feb
(22) |
Mar
(14) |
Apr
(6) |
May
(12) |
Jun
(41) |
Jul
(21) |
Aug
(26) |
Sep
(7) |
Oct
(42) |
Nov
(10) |
Dec
(7) |
2006 |
Jan
(6) |
Feb
(9) |
Mar
(19) |
Apr
(7) |
May
(1) |
Jun
(10) |
Jul
(5) |
Aug
|
Sep
|
Oct
(8) |
Nov
(9) |
Dec
(3) |
2007 |
Jan
(1) |
Feb
|
Mar
(7) |
Apr
(5) |
May
(10) |
Jun
(32) |
Jul
(6) |
Aug
(8) |
Sep
(10) |
Oct
(3) |
Nov
(11) |
Dec
(2) |
2008 |
Jan
(3) |
Feb
|
Mar
(11) |
Apr
|
May
(6) |
Jun
(4) |
Jul
|
Aug
(3) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2009 |
Jan
(6) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
|
Sep
|
Oct
(1) |
Nov
(4) |
Dec
(3) |
2010 |
Jan
(3) |
Feb
(6) |
Mar
(16) |
Apr
(2) |
May
|
Jun
|
Jul
(7) |
Aug
(3) |
Sep
(4) |
Oct
(3) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Stefan S. <se...@sy...> - 2005-08-05 13:09:21
|
tikcireviva wrote: > I wonder if version 1.04 do support double-bytes characters or not. It > seems to me that using glibmm is the only solution, am I right? Anyway, > I will try version 1.04. Thank you for your suggestions. That depends on what you mean by 'support'. libxml2 uses utf-8, and that is easily wrapped in std::string. As long as you don't start using the std::string API to interpret individual characters (but rather as an opaque buffer) you will be fine. Regards, Stefan |
From: tikcireviva <tik...@ya...> - 2005-08-05 12:55:26
|
I wonder if version 1.04 do support double-bytes characters or not. It seems to me that using glibmm is the only solution, am I right? Anyway, I will try version 1.04. Thank you for your suggestions. tikcireviva Darko Miletic wrote: > tikcireviva wrote: > >> Hi Guys, >> >> I am trying to compile the sample program "myparser" list in, but >> failed >> (http://libxmlplusplus.sourceforge.net/docs/manual/html/ar01s02.html#id2402334) > > > > You will have so much easier task of using libxml++ if you revert to > version 1.04. It does not depend on GTK and it uses std::string. I'm > using it with MSVC and Borland compiler without any problem. > > Darko > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Libxmlplusplus-general mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libxmlplusplus-general > |
From: Darko M. <da...@uv...> - 2005-08-05 12:48:43
|
tikcireviva wrote: > Hi Guys, > > I am trying to compile the sample program "myparser" list in, but failed > (http://libxmlplusplus.sourceforge.net/docs/manual/html/ar01s02.html#id2402334) You will have so much easier task of using libxml++ if you revert to version 1.04. It does not depend on GTK and it uses std::string. I'm using it with MSVC and Borland compiler without any problem. Darko |
From: tikcireviva <tik...@ya...> - 2005-08-03 12:52:04
|
Hi Guys, I am trying to compile the sample program "myparser" list in, but failed (http://libxmlplusplus.sourceforge.net/docs/manual/html/ar01s02.html#id2402334) Here are my settings: 1. Install gtkmm-devel-2.6.2-1.exe which includes glib, glibmm, libxml in the same package 2. Set Include path of libxml++ for my VC6 project However, I have the following error messages from ustring.h. (It seems to me that in GLIBMM_HAVE_SUN_REVERSE_ITERATOR is missing out the support of VC6, since the "std::reverse_iterator" contains five parameters. Well, this is for sure not being defined under ustring.h, I wonder if any of you know how to fix this problem?) c:\gtk\include\glibmm-2.4\glibmm\ustring.h(215) : error C2976: 'reverse_iterator' : too few template arguments c:\program files\microsoft visual studio\vc98\include\utility(174) : see declaration of 'reverse_iterator' c:\gtk\include\glibmm-2.4\glibmm\ustring.h(216) : error C2976: 'reverse_iterator' : too few template arguments c:\program files\microsoft visual studio\vc98\include\utility(174) : see declaration of 'reverse_iterator' c:\gtk\include\glibmm-2.4\glibmm\ustring.h(236) : error C2258: illegal pure syntax, must be '= 0' c:\gtk\include\glibmm-2.4\glibmm\ustring.h(236) : error C2252: 'npos' : pure specifier can only be specified for functions c:\gtk\include\glibmm-2.4\glibmm\ustring.h(274) : error C2065: 'npos' : undeclared identifier .... Thank you very much for yours help, I am really appreciate that. Best wishes, tikcireviva |
From: Christophe de V. <cde...@al...> - 2005-08-03 12:51:50
|
Le Mercredi 3 Ao=FBt 2005 14:38, Mehran Ziadloo a =E9crit=A0: > Hi, > Can someone tell me whether the libxml++ library can add a child node of > type of content_node to a parent node?! See the dom_build example. > I've been trying to do this since I needed a new node and I wanted to set > some content for it. Here's the way I tried to do so: > > xmlpp::Element* newElement =3D rootNode->add_child("entry"); > newElement->set_attribute("name", "sample value"); > xmlpp::ContentNode* newNodeContent =3D > dynamic_cast<xmlpp::ContentNode*>((xmlpp::Node*) newElement); > newNodeContent->set_content("sample content"); newElement->set_child_text("sample content") Regards, Christophe |
From: Mehran Z. <meh...@ho...> - 2005-08-03 12:39:00
|
Hi, Can someone tell me whether the libxml++ library can add a child node of type of content_node to a parent node?! I've been trying to do this since I needed a new node and I wanted to set some content for it. Here's the way I tried to do so: xmlpp::Element* newElement = rootNode->add_child("entry"); newElement->set_attribute("name", "sample value"); xmlpp::ContentNode* newNodeContent = dynamic_cast<xmlpp::ContentNode*>((xmlpp::Node*) newElement); newNodeContent->set_content("sample content"); But with dynamic casting, newNodeContent will be null !! Shouldn't I be able to add a content node? Thanks, Mehran Ziadloo _________________________________________________________________ Scan and help eliminate destructive viruses from your inbound and outbound e-mail and attachments. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |
From: Daniel V. <vei...@re...> - 2005-08-01 09:52:43
|
On Mon, Aug 01, 2005 at 11:45:59AM +0200, Daniel Holbach wrote: > > You talked about some RelaxNG, what is > > it? > > Relax NG is yet another validation schema for XML, I find it easier to > use and more flexible, but that's just my opinion. > http://www.relaxng.org/ has more information about it. I'm also adding schematron support directly into libxml2. Note also the Schemas validation support at the SAX level which was added in libxml2-2.6.20 Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ vei...@re... | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ |
From: Daniel H. <dh...@ma...> - 2005-08-01 09:46:13
|
Hi Mehran, Am Montag, den 01.08.2005, 05:27 -0400 schrieb Mehran Ziadloo: > Well, the problem is I'm not familar with libxml2,=20 I'll look into it. Don't worry. > I mean how=20 > would libxml++ support schema, right?=20 libxml++ is a C++ wrapper for the libxml2 library (written in C), some parts are not wrapped yet, as XML Schema and Relax NG validation support. > You talked about some RelaxNG, what is=20 > it?=20 Relax NG is yet another validation schema for XML, I find it easier to use and more flexible, but that's just my opinion. http://www.relaxng.org/ has more information about it. > Or all I need is to make use=20 > of libxml2 itself and try to make it oop?! As the Schema / Relax NG validation support is not wrapped by libxml++ yet, what you have to do (at the moment) is add some small part of C to your program. As libxml++ is a wrapper for libxml2 (http://xmlsoft.org) you already will have to have it installed and just have to add the header files included (and make sure you link against it). Hope that helps, have a nice day, Daniel |
From: Murray C. <mu...@mu...> - 2005-08-01 08:11:44
|
On Mon, 2005-08-01 at 09:37 +0200, Daniel Holbach wrote: > Hi Mehran, > > Am Montag, den 01.08.2005, 03:16 -0400 schrieb Mehran Ziadloo: > > I've just heard about this library and I'm wondering if it supports XML > > Schema to validate an XML file?! I know it does support DTDs but what about > > schema?! > > for RelaxNG, XML Schema, ... you can borrow the C (libxml2) interface, > which is an easy thing to do (since you get the libxml2 dependency > anyway. If any useful part of the libxml2 interface is not wrapped in libxml++ then please file a bug. > I used RelaxNG in > http://cvs.berlios.de/cgi-bin/viewcvs.cgi/*checkout*/protosquared/protosquared/src/ConfigFile.cc?rev=1.6 > in validate_configfile(). On http://xmlsoft.org/ you will find out what > to replace to make it happen for Schemas. > > Have a nice day, > Daniel > |
From: Daniel H. <dh...@ma...> - 2005-08-01 07:37:46
|
Hi Mehran, Am Montag, den 01.08.2005, 03:16 -0400 schrieb Mehran Ziadloo: > I've just heard about this library and I'm wondering if it supports XML=20 > Schema to validate an XML file?! I know it does support DTDs but what abo= ut=20 > schema?! for RelaxNG, XML Schema, ... you can borrow the C (libxml2) interface, which is an easy thing to do (since you get the libxml2 dependency anyway. I used RelaxNG in http://cvs.berlios.de/cgi-bin/viewcvs.cgi/*checkout*/protosquared/protosqua= red/src/ConfigFile.cc?rev=3D1.6 in validate_configfile(). On http://xmlsoft.org/ you will find out what to replace to make it happen for Schemas. Have a nice day, Daniel |
From: Mehran Z. <meh...@ho...> - 2005-08-01 07:16:41
|
Hi, I've just heard about this library and I'm wondering if it supports XML Schema to validate an XML file?! I know it does support DTDs but what about schema?! Mehran Ziadloo _________________________________________________________________ Take charge with a pop-up guard built on patented Microsoft® SmartScreen Technology http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |
From: Konstantin R. <mr...@gm...> - 2005-07-27 03:32:35
|
PiBJIGFtIGhhdmluZyBhIGhhcmQgdGltZSBnZXR0aW5nIGxpYnhtbCsrIHdvcmtpbmcgb24gYQo+ IGJyYW5kIG5ldyBGQzQgc3lzdGVtLiBJIGFtIHVzaW5nIHRoZSBsYXRlc3QgbGlieG1sKysKPiBy ZWxlYXNlIGFuZCBJIGdldCBhIFNJR1NFR1Ygb24gcHJvZ3JhbSBzdGFydC4gSSBndWVzcwo+IGl0 J3MgYSB0aHJlYWRzIHJlbGF0ZWQgaXNzdWUgYnV0IEkgY2Fubm90IGNvbmZpZ3VyZQo+IGxpYnht bCsrIHdpdGhvdXQgdGhyZWFkcyBwcm9iYWJseSBiL2MgdGhlIHVuZGVybHlpbmcKPiBsaWJ4bWwy IHdhcyBidWlsdCB3aXRoIHRocmVhZHMgc3VwcG9ydC4KPiAKPiBJIHdhcyB3b25kZXJpbmcgaWYg YW55Ym9keSBnb3QgdGhpcyBydW5uaW5nIG9uIGZlZG9yYQo+IDQgPyBhbnkgc3BlY2lhbCB0aXBz ID8KPiAKPiBGcmFua2x5LCB0aGUgd2hvbGUgbGlieG1sKysgY29uZmlndXJlIHNlZW1zIGl0J3Mg YQo+IG1lc3MgYW5kIEZlZG9yYSA0IGNvbWVzIHdpdGggYSBiYWRseSBuYW1lZCBhbmQgb2xkCj4g cnBtLgoKSSdtIHRoZSBuZXcgbWFpbnRhaW5lciBvZiBsaWJ4bWwrKyBpbiBGZWRvcmEgRXh0cmFz LiBUaGUgbmV3IHZlcnNpb24KaXMgbm90IHlldCBidWlsdC9hdmFpbGFibGUgYmVjYXVzZSBvZiBw cm9ibGVtcyB3aXRoIHRoZSBidWlsZHN5c3RlbSwKYnV0IEkgd291bGQgYmUgZ2xhZCB0byBrbm93 IGlmIHRoZXJlIGFyZSBhbnkgcHJvYmxlbXMgd2l0aCBteSBwcm9wb3NlZApwYWNrYWdlLiBDYW4g eW91IHRyeSB0aGUgUlBNcyB5b3UgZmluZCBoZXJlOgoKaHR0cDovL3BoeS5kdWtlLmVkdS9+aWNv bi9taXNjL2ZlZG9yYS1leHRyYXMvCgphbmQgdGVsbCBtZSBpZiB5b3UgY29tZSBhY3Jvc3MgYW55 IHByb2JsZW1zPyBJIGtub3cgSSB1c2UgbGlieG1sKysKd2l0aCBncmFudWxlLCBhbmQgaXQgc2Vl bXMgdG8gYmUgd29ya2luZyAoYXQgbGVhc3QgYXMgZmFyIGFzIEkgY2FuCnRlbGwgd2l0aG91dCBw b2tpbmcgbXVjaCkuCgpSZWdhcmRzLAotLSAKS29uc3RhbnRpbiBSeWFiaXRzZXYKWmxvdG5pa3Ms IElOQwoKItCS0YvRgdC70YPRhdCw0Z4g0LzRj9C00LfRjNCy0LXQtNC30Ywg0LrQsNC30LrRgyDR liDQsNC00LDRgNCy0LDRniDRgdCw0LHQtSDRhdCy0L7RgdGCLiIK |
From: jose <jj...@ya...> - 2005-07-26 19:29:36
|
I am having a hard time getting libxml++ working on a brand new FC4 system. I am using the latest libxml++ release and I get a SIGSEGV on program start. I guess it's a threads related issue but I cannot configure libxml++ without threads probably b/c the underlying libxml2 was built with threads support. I was wondering if anybody got this running on fedora 4 ? any special tips ? Frankly, the whole libxml++ configure seems it's a mess and Fedora 4 comes with a badly named and old rpm. jose ______________________________________________ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es |
From: Jonathan W. <co...@co...> - 2005-07-25 17:26:30
|
pa...@at... wrote: > Wow, this is weird. The letter I wrote, to which you are responding, was sent on July 18, but didn't get processed and sent out by the list until today the 25th. I thought I'd seen something very similar recently! I didn't notice the date, sorry for not paying closer attention. jon |
From: <pa...@at...> - 2005-07-25 17:19:03
|
Wow, this is weird. The letter I wrote, to which you are responding, was sent on July 18, but didn't get processed and sent out by the list until today the 25th. Well, since that time this matter has been resolved. The higher than expected count was as you say...whitespace was being counted. Furthermore, the crashes I was finding were the result of using libxml++ from a DLL VC project that didn't have the "multi-threaded debug DLL" option turned on. Thanks, -Brent -------------- Original message ---------------------- From: Jonathan Wakely <co...@co...> > pa...@at... wrote: > > > I've got a VC++ project that depends on libxml++, and crashes when a vector > returned from libxml++ goes out of scope (specifically, I'm referring to the > find() routine). I also noticed that the Element::get_children() call always > seems to return a higher number of children, for that context node, than the > document actually has. I'm a little suspicious that the faulty "number of > children" reporting is responsible for the destruction of non-existent pointers. > But I don't know. > > get_children() will include whitespace-only text nodes, Processing > Instructions, comments, entity declarations and other types of node, > not just elements. This is almost certainly why you're seeing a > higher number than you expect. > > As for the vector, are you taking a reference to it, or a pointer, and > holding onto that reference longer than you should? > > jon > > > -- > "The ability to quote is a serviceable substitute for wit." > - W. Sommerset Maugham |
From: Jonathan W. <co...@co...> - 2005-07-25 14:38:39
|
pa...@at... wrote: > I've got a VC++ project that depends on libxml++, and crashes when a vector returned from libxml++ goes out of scope (specifically, I'm referring to the find() routine). I also noticed that the Element::get_children() call always seems to return a higher number of children, for that context node, than the document actually has. I'm a little suspicious that the faulty "number of children" reporting is responsible for the destruction of non-existent pointers. But I don't know. get_children() will include whitespace-only text nodes, Processing Instructions, comments, entity declarations and other types of node, not just elements. This is almost certainly why you're seeing a higher number than you expect. As for the vector, are you taking a reference to it, or a pointer, and holding onto that reference longer than you should? jon -- "The ability to quote is a serviceable substitute for wit." - W. Sommerset Maugham |
From: Christophe de V. <chr...@fr...> - 2005-07-25 14:22:29
|
Le Jeudi 21 Juillet 2005 18:55, jose a =E9crit=A0: > Hi, > > Shouldn't this work ? > > ./configure --prefix=3D/usr --disable-threads > ./configure --prefix=3D/usr --enable-threads=3Dno > make and make install > > but ... > > when I run pkg-config it is still showing -lpthread. > Why ? I guess it's because libxml2 is thread-enabled on your system. Christophe |
From: jose <jj...@ya...> - 2005-07-21 16:56:54
|
Hi, Shouldn't this work ? ./configure --prefix=/usr --disable-threads ./configure --prefix=/usr --enable-threads=no make and make install but ... when I run pkg-config it is still showing -lpthread. Why ? Thanks Jm ______________________________________________ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es |
From: Jose <jm...@gm...> - 2005-07-21 11:34:08
|
Hi, I see that my previous message "Using libxml++" appears in the mailing list archive as of wednesday 20th july but I haven't received the mailing list copy . Is the mailling list reliable ? thanks Jose |
From: Jose <jm...@gm...> - 2005-07-20 17:24:04
|
not sure this message got through thnks ---------- Forwarded message ---------- From: Jose <jm...@gm...> Date: Jul 20, 2005 1:16 PM Subject: using libxml++ To: lib...@li... I've installed and run the textreader example. When I trie to run the textreader example with the Makefile below, it builds ok but I gives a SIGSEGV when it starts. Any ideas ? Thanks Jose CXXFLAGS+=3D $(shell pkg-config --cflags libxml++-2.6) CXX =3D g++ -g -O2 -shared $(CXXFLAGS) LDFLAGS+=3D $(shell pkg-config --libs libxml++-2.6) OBJS =3D parsetx.o parse: $(OBJS) $(CXX) -o $@ $(LDFLAGS) $(OBJS) |
From: Darko M. <da...@uv...> - 2005-07-20 15:12:59
|
pa...@at... wrote: > Doesn't work after the first time. After it is executed successfully the first > time - all subsequent calls, through a variety of other node instances, fail the > conditional tests you see above. That is true. That is why you should build class(es) that will handle this internally for you. > Still, I figure there must be a more elegant way to modify libxml++ to handle > this issue. I say this because, it is really annoying to have to set the prefix > and namespace over, and over, and over, for each Node instance you obtain. Not that I am aware off. It could be done though to place default namespace into document class and in node class and when getting new node from document the default namespace value will be passed to node class and than automatically executed in find method. I was thinking about that but I needed something that works and quickly so I just modified node class and built my classes around that feature. Darko |
From: Jose <jm...@gm...> - 2005-07-20 11:17:40
|
I've installed and run the textreader example.=20 When I trie to run the textreader example with the Makefile below, it builds ok but I gives a SIGSEGV when it starts. Any ideas ? Thanks Jose CXXFLAGS+=3D $(shell pkg-config --cflags libxml++-2.6) CXX =3D g++ -g -O2 -shared $(CXXFLAGS)=20 LDFLAGS+=3D $(shell pkg-config --libs libxml++-2.6) OBJS =3D parsetx.o parse: $(OBJS) =09$(CXX) -o $@ $(LDFLAGS) $(OBJS) |
From: <pa...@at...> - 2005-07-20 02:56:58
|
I'm glad you mentioned the approach you took, because the code I had found elsewhere and pasted into Node::Find()... xmlNodePtr current_node=impl_ xmlNsPtr nsdefptr = current_node->nsDef; if(nsdefptr != NULL) { if(nsdefptr->prefix == NULL) { xmlXPathRegisterNs(ctxt, (const xmlChar *)"dummy", nsdefptr->href); } } Doesn't work after the first time. After it is executed successfully the first time - all subsequent calls, through a variety of other node instances, fail the conditional tests you see above. Still, I figure there must be a more elegant way to modify libxml++ to handle this issue. I say this because, it is really annoying to have to set the prefix and namespace over, and over, and over, for each Node instance you obtain. -Brent |
From: Darko M. <da...@uv...> - 2005-07-19 21:29:51
|
pa...@at... wrote: > The reading I've done tells me that with XML1.1 there is no way to use >default namespaces in XPath searches. Ok, so now I'd like to know the >work-around. One thing I found in another post was this: That is true. > If I understand the above code correctly, it is assigning a prefix to >the default namespace, then using that prefix in XPath searches. Is >that correct? I AM PERFECTLY HAPPY resolving my problem this way (if >it will work). But I want to find out if this can be done through the >libxml++ wrapper - and if this over-all approach is Kosher. Yes it is the only way. I included changes to my local version of libxml++ in node.cc. In node class I added namespaceprefix and namespaceref items. Then in node::find method I added this before the search is to be executed: if (!nsprefix_.empty() && !nsref_.empty()) { xmlXPathRegisterNs( ctxt, reinterpret_cast<const xmlChar*>(nsprefix_.c_str()), reinterpret_cast<const xmlChar*>(nsref_.c_str())); }; } Allso it was needed to add special new method for setting these two values in node class that look like this: void Node::set_namespace_with_ref(const std::string& ns_prefix, const std::string& ns_ref) { xmlNs* ns = xmlSearchNs( cobj()->doc, cobj(), (xmlChar*)ns_prefix.c_str() ); if(!ns) { nsprefix_ = ns_prefix; nsref_ = ns_ref; } else { nsprefix_.clear(); nsref_.clear(); } } With this everything works just fine. Darko |
From: <pa...@at...> - 2005-07-19 19:38:35
|
The reading I've done tells me that with XML1.1 there is no way to use default namespaces in XPath searches. Ok, so now I'd like to know the work-around. One thing I found in another post was this: ------------------------------------------------------- What I can do, is register some dummy namespace: eg: xmlNodePtr current_node=(get this node some magic way); xmlNsPtr nsdefptr = current_node->nsDef; if(nsdefptr != NULL) { if(nsdefptr->prefix == NULL) { xmlXPathRegisterNs(xpath_context, (const xmlChar *)"dummy", nsdefptr->href); } } but in this case I have to prefix all my XPath query element id's (which are meant to be in the default namespace) with dummy: (eg <foo/> needs XPath: /dummy:foo) ------------------------------------------------------------ taken from: http://mail.gnome.org/archives/xml/2003-April/msg00143.html If I understand the above code correctly, it is assigning a prefix to the default namespace, then using that prefix in XPath searches. Is that correct? I AM PERFECTLY HAPPY resolving my problem this way (if it will work). But I want to find out if this can be done through the libxml++ wrapper - and if this over-all approach is Kosher. -Brent |