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: Hamid G. <h....@gm...> - 2007-05-21 14:45:30
|
I have wrote: > setenv PKG_CONFIG_PATH /myProjectDir/bin/pkg-config > setenv LIBXML_LIBS /myProjectDir/lib/libxml2.a > setenv LIBXML_CFLAGS /myProjectDir/libxml2/libxml/ > ./configure --prefix = /myProjectDir [...] hecking pkg-config is at least version 0.9.0... ./myProjectDir/bin/pkg-config: No such file or directory no checking for LIBXML... configure: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables LIBXML_CFLAGS and LIBXML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. I Have also taped wrote, I have omitted the line (After having deleted the LIBXML_CFLAGS variable): > setenv PKG_CONFIG_PATH /myProjectDir/bin/pkg-config > setenv LIBXML_LIBS /myProjectDir/lib/libxml2.a > ./configure --prefix = /myProjectDir And i have also the same error. I don't inderstand. In the different files "*.h" end "*.a" exist. And paths are OK. |
From: Hamid G. <h....@gm...> - 2007-05-21 13:28:28
|
re hi every one, I am trying to install libxml++. But, it is not easy for me. As i have said in my precedent message, I have secceed to install libxml2 and pkg-config. I have taped these line to install my library: ** > setenv PKG_CONFIG_PATH /myProjectDir/bin/pkg-config > setenv LIBXML_LIBS /myProjectDir/lib/libxml2.a > setenv LIBXML_CFLAGS "cc" > ./configure --prefix = /myProjectDir [...] > make make all-recursive make[1]: Entering directory `/libxml++-2.18.0' Making all in libxml++ make[2]: Entering directory `/libxml++-2.18.0/libxml++' make all-recursive make[3]: Entering directory `/libxml++-2.18.0/libxml++' Making all in parsers make[4]: Entering directory `/libxml++-2.18.0/libxml++/parsers' if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -m64 -DHAVE_CONFIG_H -DLIBXMLPP_BUILD -I. -I. -I../.. -I../../libxml++ -I../.. cc -g -O2 -MT parser.lo -MD -MP -MF ".deps/parser.Tpo" -c -o parser.lo parser.cc; \ then mv -f ".deps/parser.Tpo" ".deps/parser.Plo"; else rm -f ".deps/parser.Tpo"; exit 1; fi g++ -m64 -DHAVE_CONFIG_H -DLIBXMLPP_BUILD -I. -I. -I../.. -I../../libxml++ -I../.. cc -g -O2 -MT parser.lo -MD -MP-MF .deps/parser.Tpo -c parser.cc -o parser.o g++: cannot specify -o with -c or -S and multiple compilations make[4]: *** [parser.lo] Error 1 make[4]: Leaving directory `/libxml++-2.18.0/libxml++/parsers' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/libxml++-2.18.0/libxml++' make[2]: *** [all] Error 2 make[2]: Leaving directory `/libxml++-2.18.0/libxml++' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/libxml++-2.18.0' make: *** [all] Error 2 Thank you. |
From: Hamid G. <h....@gm...> - 2007-05-21 09:49:21
|
*Hi all,* ** *I would like to use libxml++. To install it, i have downloaded 2.18.0libxml++ version. I have installed libxml2-2.6.28 and pkg-config-0.20. To install libxml++ i have done:* > setenv PKG_CONFIG_PATH /myProjectDir/bin/pkg-config > setenv LIBXML_LIBS /myProjectDir/lib/libxml2.a > ./configure --prefix = /myProjectDir ... checking pkg-config is at least version 0.9.0... yes checking for LIBXML... configure: error: Package requirements (libxml-2.0 >= 2.6.1 glibmm-2.4 >= 2.4.0) were not met: No package 'libxml-2.0' found No package 'glibmm-2.4' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LIBXML_CFLAGS and LIBXML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. *The link to libxml library is wrong. I don't khnow what to writ to resolve this problem.* *Thank you for your help.* |
From: Hamid G. <h....@gm...> - 2007-05-21 09:38:52
|
*Hi all,* ** *I would like to use libxml++. To install it, i have downloaded 2.18.0libxml++ version. I have installed libxml2-2.6.28 and pkg-config-0.20. To install libxml++ i have done:* > setenv PKG_CONFIG_PATH /myProjectDir/bin/pkg-config > setenv LIBXML_LIBS /myProjectDir/lib/libxml2.a > ./configure --prefix = /myProjectDir ... checking pkg-config is at least version 0.9.0... yes checking for LIBXML... configure: error: Package requirements (libxml-2.0 >= 2.6.1 glibmm-2.4 >= 2.4.0) were not met: No package 'libxml-2.0' found No package 'glibmm-2.4' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LIBXML_CFLAGS and LIBXML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. *The link to libxml library is wrong. I don't khnow what to writ to resolve this problem.* *Thank you for your help.* 2007/5/15, Hamid Gasmi <h....@gm...>: > > Hi, > > I would like to use libxml++. I have downloaded libxml++-2.18.0. But, i > have not succeed to install it. I have, in fact, the following problem: It > asks me to install libxlk2 and glibmm-2.4 like you can see below: > > > cd libxml++-2.18.0/ > > setenv PKG_CONFIG_PATH /myProjectDir/ > > ./configure --prefix= /myProjectDir/ > ... after many lines ... > > checking for LIBXML... configure: error: Package requirements (libxml-2.0>= > 2.6.1 glibmm-2.4 >= 2.4.0) were not met: > > No package 'libxml-2.0' found > No package 'glibmm-2.4' found > > Consider adjusting the PKG_CONFIG_PATH environment variable if you > installed software in a non-standard prefix. > > Alternatively, you may set the environment variables LIBXML_CFLAGS > and LIBXML_LIBS to avoid the need to call pkg-config. > See the pkg-config man page for more details. > > So, I have downloaded glibmm-2.12.1 and libxml2-2.2.0. > > glibmm configuration gives me this lines: > > > cd glibmm-2.12.1/ > > ./configure --prefix= /myProjectDir/ > ... after many lines ... > > checking for GLIBMM... configure: error: Package requirements (sigc++-2.0>= > 2.0.0 glib-2.0 >= 2.9.0 gobject-2.0 >=2.9.0 gmodule-2.0 >= 2.9.0) were not > met: > > No package 'sigc++-2.0' found > Requested 'glib-2.0 >= 2.9.0' but version of GLib is 2.2.3 > Requested 'gobject-2.0 >= 2.9.0' but version of GObject is 2.2.3 > Requested 'gmodule-2.0 >= 2.9.0' but version of GModule is 2.2.3 > > Consider adjusting the PKG_CONFIG_PATH environment variable if you > installed software in a non-standard prefix. > > Alternatively, you may set the environment variables GLIBMM_CFLAGS > and GLIBMM_LIBS to avoid the need to call pkg-config. > See the pkg-config man page for more details. > > Thank you. > > > |
From: hassane i. a. <ism...@gm...> - 2007-05-12 12:24:07
|
Hi everyone, I am a new user of libxml++, i want to use this librairie in a project inder VC++(windows) if some one can give me a tuto or the maner for the installation ander VC++ i was very thanking Peace, -Hassane |
From: Trappel M. <mar...@ks...> - 2007-04-24 11:32:25
|
Hello all! We're thinking of using libxml++ as a wrapper for libxml2. We would very much like to avoid the Glib::ustring dependency. (since = we are on Windows this whole dependecy chain is not there by default.) I have found this discussion and patch: http://bugzilla.gnome.org/show_bug.cgi?id=3D320197 Last referenced here: http://sourceforge.net/mailarchive/message.php?msg_name=3DCJEDLPCELDKNDA= FCJBMM GEAEEKAA.rsgrimes%40rcn.com Whe I tried to apply the patch to the current libxml++ version I've downloaded (libxml++-2.18.0) I got several "patching file ... Hunk #1 FAILED" messages from patch. (This is the very first time I have = anything to do with patch ::) ) As I can see the patch referenced in 320197 is against 2.14.0 - so it = might not work with 2.18.0. Are there any plans to include the "-DLIBXMLPP_USE_STD_STRING" / "--without-ustring" into the normal source tree for libxml++ ? Has anyone patched 2.18 for this? Thanks a lot! best regards / mit freundlichen Gr=FC=DFen, Martin Trappel |
From: Nate N. <nie...@me...> - 2007-04-11 11:48:32
|
libxml supports schemas, although there may not be C++ bindings in libxml++ for them. http://xmlsoft.org/html/libxml-xmlschemas.html Cheers, Nate Nielsen David Wilson wrote: > Hello, > Is there a way to do Schema Validation with libxml++. the examples only use DTDs > > Sincerely, > David > |
From: David W. <gig...@gm...> - 2007-04-11 03:46:52
|
Hello, Is there a way to do Schema Validation with libxml++. the examples only use DTDs Sincerely, David |
From: cocainy <co...@16...> - 2007-04-02 14:11:25
|
aGksIA0KICAgICBJIGFtIGd1eSBmcm9tIENoaW5hICwgYW5kIEkgbGVhcm4gbGlieG1sIGZvciBz ZXZlcmFsIGRheXMgLiBidXQgSSBmaW5kIA0KIGl0IGlzIG5vdCBjb252aWVudCB0byB1c2UgdGhl IGxpYnhtbDIgd3JvdGVuIGJ5IHB1cmUgYyxzbyBJIHNlYXJjaCB0aGUgDQppbnRlcm5ldCBmb3Ig dGhlIGNwcF92ZXJzaW9uLCBhbmQgSSBmb3J0dXJuZXRlbGx5IGZpbmQgdGhlIGxpYnhtbCsrLCBi dXQgdGhlcmUgYXJlIG9ubHkgdmVyc2lvbiBmb3IgdXNpbmcgdW5kZXIgbGludXggb3IgdW5pbngg LCBJIGFtIGEgYmVnaW5uZXIgaW4gDQogYysrIGRvbWFpbiBhbmQgSSB1c2UgdGhlIG1pY3Jvc29m dCBjb21wbGllciB2YysrLm5ldCggbm9uZS1tYW5hbmdlZCBjKyspLCANCiBzbyBJIGNhbiBub3Qg dXNlIHRoZSB0YXIuZ3ogcGFja2FnZSB1bmRlciB3aW5kb3dzIE9TLg0KICAgIFNvIGNvdWxkIGFu eWJvZHkgbGV0IG1lIGtub3cgd2hlcmUgY2FuIEkgZ2V0IGEgdmVyc2lvbiBmb3IgTVMgV2luZG93 cyBPUyANCiBzeXN0ZW0/DQogDQogICAgVGhhbmsgeW91IGluIGFkdmFuY2UuDQogDQogICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFNpbmNlcmVseSBZb3Vycw0KICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2NhaW55DQo= |
From: David W. <gig...@gm...> - 2007-03-30 16:26:47
|
Is it possible to validate using a XML Schema instead of a DTD. David |
From: David W. <gig...@gm...> - 2007-03-29 20:54:24
|
Is it possible to validate using a XML Schema instead of a DTD. David |
From: SR <sha...@gm...> - 2007-03-28 03:53:00
|
Hello All, I need some information regarding the libxml++ installation on windows. Hope someone could help me out with some information. I am trying to build and compile libxml++ on windows, using Microsoft Visual Studio -2005. I am getting an error "Error PRJ0019: A tool returned an error code from "Generate libxml++ def file" xml++-2.6 " everytime I try to compile it. I understand that it is a pre-link event tool error. I am pasting below the build log for the libxml++ installation. C:\Documents and Settings\SR\Desktop\libxml++\libxml++- 2.18.0\MSVC_Net2003\gendef\Debug\gendef Debug\libxml++.def xml++-2.6d.dll Debug\*.obj Debug\exceptions\*.obj Debug\io\*.obj Debug\nodes\*.obj Debug\parsers\*.obj Debug\validators\*.obj if errorlevel 1 goto VCReportError goto VCEnd :VCReportError echo Project : error PRJ0019: A tool returned an error code from "Generate libxml++ def file" exit 1 :VCEnd Creating command line """c:\Documents and Settings\SR\Desktop\libxml++\libxml++- 2.18.0\MSVC_Net2003\libxml++\Debug\BAT00001D44005224.bat""" I appreciate if someone could help me out with this. Thanks, SJ |
From: <gz...@ar...> - 2007-03-12 14:37:39
|
Hi, Are there plans to wrap the HTML DOM and/or SAX Parser? I know this questio= n is not new, but the archives are not reachable everywhere (Message does n= ot longer exist..).=20 Maybe someone did this on his but it is not implemented? It would be great = if i dont have to begin from zero. Thank you for your answers. kind regards Manuel Jung Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: g=FCnsti= g und schnell mit DSL - das All-Inclusive-Paket f=FCr clevere Doppel-Sparer, nur 39,85 =80 inkl. DSL- und ISDN-Grundgeb=FChr! http://www.arcor.de/rd/emf-dsl-2 |
From: <ku...@ho...> - 2007-03-09 18:21:44
|
Hi all. I've installed libxml++ 2.xxx on my Debian Etch and it all worked fine. However, when I tried to compile a little test program, it didn't compile because glibconfig.h and glibmmconfig.h were both missing. As you certainly already know, they are included through glib and glibmm to let me use Glib::ustring. I looked in some of the directories where the files could have been installed but I couldn't find them. What is weird with this is that these two files is: - first, they haven't been installed with glib and glibmm packages whereas they are mandatory for the compilation - then, they come from different packages, but have similar names and cause exactly the same problem when compiling, so maybe I just misunderstood something I tried to use pkg-config to get the right include paths for G++ but it doesn't work because pkg-config tells me that I don't have glib-config program. Now here is my question : does someone know whether I really lack something or if there is something else to do (or somewhere else to look for the needed headers) in order not to get compiler errors because of glibconfig.g and glibmmconfig.h? Thanks to all in advance for your help!! Cheers! Francois PS. I saw on libxml++ site that there was a HAVE_CONFIG_H macro and a config.h file to use. I can't test this right now because I'm not at home, but do you think this might help me in some way? _________________________________________________________________ Personnalisez votre Messenger avec Live.com http://www.windowslive.fr/livecom/ |
From: Uche M. <um...@ev...> - 2007-01-30 09:26:18
|
Hi All While browsing the documentation of xmlpp::Element, I discovered the methods add_child_comment() and add_child_text(), but no method to create a CDATA section. I would really appreciate such a method because add_child_text() parses the entered text once again and therefore takes some time. Is there a special reason, why this method is not implemented yet (I assume it to be a very simple task)? Is there an easy workaround for this? Best regards Uche |
From: Arthur M. <art...@gm...> - 2006-12-14 04:07:06
|
Hi there, guys. I'm new to the list and I've seen this thread not answered. Does anyone intend to wrap the HTML Parser functionality int libxml++? I really need a html parser. I appreciate you help. Regards, Arthur |
From: Julius M. <ju...@mu...> - 2006-11-13 16:38:23
|
Hi all, i would propose to add the attached function to xmlpp::Node. This function tests whether the node or any subnode match with the =20 given xpath-expression. ( NodeSet find(const Glib::ustring& xpath); is not suitable for that =20 purpose, because some expressions don't return an NodeSet). I would ask you to add this code snippet to the cvs-repository. Best regards /Julius ----------------------------- libxml++/nodes/node.h: ----------------------------- /** Test nodes with XPath expression * @param xpath The XPath of the nodes. * @return True if any node matches the XPath expression, false =20 otherwise. */ bool test(const Glib::ustring& xpath) const; /** Test nodes with XPath expression * @param xpath The XPath of the nodes. * @param namespaces A map of namespace prefixes to namespace URIs =20= to be used while finding. * @return True if any node matches the XPath expression, false =20 otherwise. */ bool test(const Glib::ustring& xpath, const PrefixNsMap& =20 namespaces) const; ----------------------------- libxml++/nodes/node.cc: ----------------------------- static bool test_impl(xmlXPathContext* ctxt, const Glib::ustring& xpath) { bool ret; xmlXPathObject* result =3D xmlXPathEval((const xmlChar*)xpath.c_str=20= (), ctxt); if(!result) { xmlXPathFreeContext(ctxt); throw exception("Invalid XPath: " + xpath); } ret =3D xmlXPathCastToBoolean(result); xmlXPathFreeObject(result); xmlXPathFreeContext(ctxt); return ret; } bool Node::test(const Glib::ustring& xpath) const { xmlXPathContext* ctxt =3D xmlXPathNewContext(impl_->doc); ctxt->node =3D impl_; return test_impl(ctxt, xpath); } bool Node::test(const Glib::ustring& xpath, const PrefixNsMap& namespaces) const { xmlXPathContext* ctxt =3D xmlXPathNewContext(impl_->doc); ctxt->node =3D impl_; for (PrefixNsMap::const_iterator it=3Dnamespaces.begin(); it !=3D namespaces.end(); it++) xmlXPathRegisterNs(ctxt, reinterpret_cast<const xmlChar*>(it-=20 >first.c_str()), reinterpret_cast<const xmlChar*>(it-=20 >second.c_str())); return test_impl(ctxt, xpath); } ----------------------------- --=20 GRIN Verlag GbR Dr. Julius Mittenzwei Marienstr. 17 80331 M=FCnchen http://www.grin.com/ E-Mail: jm...@gr... Tel: +49-(0)89-550559-12 Fax: +49-(0)89-550559-10 |
From: Nate N. <nie...@me...> - 2006-11-10 22:10:19
|
May I go ahead and branch libxml++ in the GNOME CVS for 2.16? I'd apply this patch shortly thereafter: http://bugzilla.gnome.org/show_bug.cgi?id=351876 I'm also very interested in committing the patch attached to this bug, as it prevents me from using a stock libxml++ build: http://bugzilla.gnome.org/show_bug.cgi?id=351215 Thanks in advance, Nate Nielsen |
From: Matthias W. <m...@tt...> - 2006-11-09 00:34:28
|
Hi list, Matthias Wimmer schrieb: > I have tracked down a bug I have in some code, that uses libxml++, and = I > am not sure if I found a bug in libxml++, or if I just expect the wrong= > behaviour from this library. I just had some looks at the code of libxml++ and it is definetly a bug in libxml++. In libxml++/nodes/node.cc in the method add_child() namespace handling is switched off, if no namespace prefix has been given (i.e. if the default namespace is used). IMHO this is a bug and does not conform the the XML namespace specification. Only attributes having no namespace prefix do not have a namespace. Elements without a namespace prefix are not namespace-less, but are in the default namespace. Christophe and Murray, is there any change, that if I write a patch for libxml++, that fixes this problem, that this would get into the official libxml++ code? Else it seems, that it would be better for me not to use libxml++ in my current project. Tot kijk Matthias -- Matthias Wimmer Fon +49-700 77 00 77 70 Z=C3=BCricher Str. 243 Fax +49-89 95 89 91 56 81476 M=C3=BCnchen http://ma.tthias.eu/ |
From: Matthias W. <m...@tt...> - 2006-11-07 23:01:20
|
Hi list, I have tracked down a bug I have in some code, that uses libxml++, and I am not sure if I found a bug in libxml++, or if I just expect the wrong behaviour from this library. The problem I have with libxml++ can be shown with the following code: >>>>>>>> xmlpp::Document* xml_document = new xmlpp::Document; xmlpp::Element* root_element = xml_document->create_root_node("stream", "http://etherx.jabber.org/streams", "stream"); root_element->set_namespace_declaration("jabber:server"); root_element->set_attribute("version", "1.0"); root_element->set_attribute("to", "example.com"); xmlpp::Element* message_element = root_element->add_child("message"); std::cout << "The namespace IRI of the message element is: '" << message_element->get_namespace_uri() << "'" << std::endl; >>>>>>>> The output I get from this code is: The namespace IRI of the message element is: '' ... but what I expected to get was: The namespace IRI of the message element is: 'jabber:server' When I serialize the document using the write_to_stream() method of Document, I correctly get the message element inside the namespace "jabber:server". But why then does the get_namespace_uri() method for this element return an empty string? Tot kijk Matthias |
From: Anton D. <ad...@gm...> - 2006-11-02 11:21:10
|
Hi! Please include my little patch into 1.0 branch (if possible). It fixes coredump during try of reporting parse error in DomParser::parse_context. To reproduce coredump one should try to parse XML document with incorrect encoding; it happens on 1.0.5 only: std::string xml_doc = "<?xml version=\"1.0\" encoding=\"unknown-122\"?>" "<root/>"; xmlpp::DomParser parser; parser.set_substitute_entities(); -- Anton Dedov |
From: <dan...@sb...> - 2006-11-02 10:07:21
|
Hello! I'm trying to write the following xml: <?xml version=3D"1.0"?> <exampleroot xmlns=3D"http://www.landxml.org/schema/LandXML-1.0"> <examplechild/> </exampleroot> Here is the simple code, that throws an exception (Exception caught: The namespace () has not been declared.): xmlpp::Document document; xmlpp::Element* nodeRoot =3D = document.create_root_node("exampleroot", "http://www.landxml.org/schema/LandXML-1.0"); nodeRoot->add_child("examplechild"); How can I create the above xml? I'm using libxml++2.6. Thanks in = advance! H=E4lsningar, Daniel SBG AB Phone: +4687112090 Fax : +4687112098 Location: 59 14'10" N 18 00'09" E |
From: Poulpe <pou...@gm...> - 2006-10-19 14:43:59
|
Hi Everyboby. I'm just starting to use libxml++ for a research project (migrating form XERCES-C whose license is "supposed" to be GPL compatible, but the Apache Software Foundation is still not sure...). For now, i just use the DOM parser to read a file and browsing the resulting tree. I have two issues: * directory issue when memory parsing : the directory associated to a parse when memory/stream parsing is processed: if the DTD referenced in xml definition in memory is not in the working directory, a "file not found" exception is launched. I have corrected this issue in my code by rewriting a parse_memory() method, adding a directory parameter and: > context_->directory = (char*) xmlStrdup((xmlChar*)directory); just before the parse_context() call (maybe a preprocessing is needed on char* directory in order to extract the directory from the entire file path) Maybe it could be interesting to add this kind of features in the code * default attribute value form DTD When I parse a validated XML file with DOMParser, and i browse the resulting tree, calls to get_attribute(name) returns NULL when the attribute is not present in the XML, but has a default value in DTD. I don't if it is a normal behavior or if i forget to set some option (currently using set_validate() and set_substitute_entities()). If it's a normal behavior, it could be interesting to add a fonction to get the value, defaulted if not present in XML. For now, i use a libxml call to xmlGetProp() instead of the xmlHasProp(). This returns a char string if attribute is present or defaulted, else returns NULL. Please say if i get wrong somewhere. Best regards, Raphael. |
From: <loi...@re...> - 2006-10-11 16:20:19
|
> Is there are known workaround, or proposed fix? >=20 > Thanks, > Eric Have you read my previous message on the subject ? I use libxml++ with = several DLL on VC++2005, and have not encountered any problems. To my understanding, there is another way to acheive this : If you select the Multi-threaded DLL (/MD) options, all = allocations/deallocations, either from the main program or from the DLL = are delegated to yet another DLL (MSVCR80.DLL) (which must then be = delivered with the program), and thus happen in a unique place. Of course, the main program and all its DLL should be compile with the = same option. -- Lo=EFc >=20 > ----Original Message---- > On Wed, 2006-07-19 at 13:34 -0400, Robert S. Grimes wrote: > [snip] > > This seems to say the object was created on another heap=20 > (libxml++ DLL's > > heap?) and being deleted by my code (using the main=20 > heap?). It seems the > > "return value optimization" has been applied, and it=20 > perhaps shouldn't have > > been. Does this make any sense? If so, what do I do=20 > about it? Or am I > > missing something even more obvious? >=20 > This looks the annoying MSVC++ requirement that memory is=20 > deallocated in > the same library (DLL) in which it was allocated. So, if a=20 > library gives > you a newly allocated object, you can't delete it yourself.=20 > You have to > tell the library to delete it. libsigc++ used to have this same > problem. >=20 > You can usually fix this by making sure that, though the deletion is > initiated in the caller, the actual deletion happens in=20 > some function in > the library. Which would require a patch. >=20 >=20 |
From: Eric B. <eri...@ao...> - 2006-10-09 16:48:28
|
After looking at the code, it seems to me the fix is to have libxml++ specify an allocator object when constructing all container-based objects that are returned to the calling code. Not sure how that would need to be implemented but that would enable the vector to maintain info on how to deallocate its internal data. Eric Eric Beyeler wrote on 10/9/2006, 11:53 AM: > Is there are known workaround, or proposed fix? > > Thanks, > Eric > > ----Original Message---- > On Wed, 2006-07-19 at 13:34 -0400, Robert S. Grimes wrote: > [snip] > > This seems to say the object was created on another heap (libxml++ > DLL's > > heap?) and being deleted by my code (using the main heap?). It > seems the > > "return value optimization" has been applied, and it perhaps > shouldn't have > > been. Does this make any sense? If so, what do I do about it? > Or am I > > missing something even more obvious? > > This looks the annoying MSVC++ requirement that memory is > deallocated in > the same library (DLL) in which it was allocated. So, if a library > gives > you a newly allocated object, you can't delete it yourself. You have to > tell the library to delete it. libsigc++ used to have this same > problem. > > You can usually fix this by making sure that, though the deletion is > initiated in the caller, the actual deletion happens in some > function in > the library. Which would require a patch. > |