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: John H. <jo...@ha...> - 2005-05-05 06:40:53
|
I am moving a project component from the C expat xml parser too libxmlc++. Essentially I am looking to override the do_characters method in my own Parser object to extract the values of the elements (pretty much like you would do in expat). Looking at the sax_parser example it appears the on_characters function is not being called during the document parsing? I am probably missing something obvious here.....but understanding why would be helpful. Thanks John |
From: <iba...@po...> - 2005-04-27 10:14:59
|
i word with parser xml sax, but i want the libxml.h in my compilttor visual studio 7. you send me URL who this librairie exist !! iba...@po... thank you |
From: Rasmus K. <ka...@kt...> - 2005-04-18 11:56:11
|
>>>>> "SR" == Simon Reye <sr...@in...> writes: Hi! SR> I'm rather new to c++ development on Linux and am having trouble SR> just compiling and linking some of the simple example programs SR> for libxml++. Does anyone have a simple Makefile that has the SR> necessary include and library settings to build a libxml++ SR> program. The pkg-config system takes care of all the hard stuff for you. Assuming you use gmake, something like this, where progname is the program you want to compile should be fine: CXXFLAGS+= $(shell pkg-config --cflags libxml++-2.6) LDFLAGS+= $(shell pkg-config --libs libxml++-2.6) OBJS= ... local .o files ... progname: $(OBJS) $(CXX) -o $@ $(LDFLAGS) $(OJBS) -- Rasmus Kaj --+-- ra...@ka... --+-- http://www.stacken.kth.se/~kaj/ I'm on a seafood diet -- I see food and I eat it |
From: Simon R. <sr...@in...> - 2005-04-18 02:34:43
|
I'm rather new to c++ development on Linux and am having trouble just compiling and linking some of the simple example programs for libxml++. Does anyone have a simple Makefile that has the necessary include and library settings to build a libxml++ program. Thanks Simon |
From: <inf...@we...> - 2005-04-14 15:16:05
|
hi, i am new to libxml++ and i need a little help. i already tried to use the code from the examples on the website but i dont get it work. i have a xml file like that <?xml version="1.0" encoding="ISO-8859-1" ?> <stuff> <myvalue>entered</myvalue> <timestamp>1113483283</timestamp> <count>12</pms> </stuff> not all nodes must be there, so i only want to read these values which are present and put these into strings. i'd like to programm something like that (pseudo code): foreach( xmlnode in rootnode.get_children() ) { if( xmlnode.name == "myvalue") myvalue == xmlnode.text; if( xmlnode.name == "timestamp") timestamp == xmlnode.text; if( xmlnode.name == "count") count == xmlnode.text; } could anyone help with that and colud give me a code snippet for that, please? greets Christian ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 |
From: tom j. <lis...@ya...> - 2005-04-09 03:38:29
|
Hi all. This refers to my bug http://sourceforge.net/tracker/index.php?func=detail&aid=1175291&group_id=12999&atid=112999 I cannot compile libxml++ using g++ and the -pedantic argument. There seem to be a number of extra ";"'s. My research backs up that they shouldn't be there. If I take them out my programs compile fine. I am happy to fix this for you. I can provide patches or write straight to the CVS. Either way you'll have to let me know the details of what you expect. If you would like this help simple let me know :) __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ |
From: Christophe de V. <cde...@ne...> - 2005-03-09 14:49:04
|
*** libxml++ libxml++ is a C++ wrapper for the libxml XML parser library. It has SAX and DOM-like APIs, but does not attempt to conform exactly to the DOM specifications because they are not aimed at C++. Its API is much simpler than the underlying libxml C API. *** Changes No significant changes since 2.9.2: * First stable 2.10.x release * Fixed documentation packaging problems *** Download You can download libxml++ from here: http://libxmlplusplus.sourceforge.net/ Christophe de Vienne |
From: PS <blo...@ma...> - 2005-03-03 04:14:32
|
iconv -l | grep -i windows-1251 CP1251 MS-CYRL WINDOWS-1251 so, it's installed... seems to be some other problem |
From: Jonathan W. <co...@co...> - 2005-03-02 18:53:27
|
On Wed, Mar 02, 2005 at 06:45:13PM +0000, Jonathan Wakely wrote: > On Wed, Mar 02, 2005 at 11:46:23AM -0500, PS wrote: > > > Hello > > I compiled libxml++ and used the first example from manual (the dom parser) > > When I run in on windows everything worked ok, but on unix (I use > > FreeBSD 4.11) it gave me errors: > > > > ... > > ... > > Node name = title > > Node name = title > > line = 8 > > > > Text Node > > terminate called after throwing an instance of 'Glib::ConvertError' > > text = "Abort (core dumped) > > > > > > the sample xml file was: > > <?xml version="1.0" encoding="windows-1251"?> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> > > <head> > > <title>???????????????????????? ????????????????????...</title> > > > > So, as you might see, it coredumps just when it attempted to recode non > > english chars inside title. > > > > > > What's wrong with this?? Thank you > > It's possible that you don't have the right libraries installed to > support conversion from windows-1252 - FreeBSD often installs a minimal > set of libs. Try this: > > iconv -l | grep -i windows-1252 Sorry - that should obviously be windows-1251, not 1252 I have windows-1252 on the brain right now :) jon -- "Keep away from people who try to belittle your ambitions. Small people always do that, but the really great make you feel that you, too, can become great." - Mark Twain |
From: Jonathan W. <co...@co...> - 2005-03-02 18:46:04
|
On Wed, Mar 02, 2005 at 11:46:23AM -0500, PS wrote: > Hello > I compiled libxml++ and used the first example from manual (the dom parser) > When I run in on windows everything worked ok, but on unix (I use > FreeBSD 4.11) it gave me errors: > > ... > ... > Node name = title > Node name = title > line = 8 > > Text Node > terminate called after throwing an instance of 'Glib::ConvertError' > text = "Abort (core dumped) > > > the sample xml file was: > <?xml version="1.0" encoding="windows-1251"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> > <head> > <title>???????????????????????? ????????????????????...</title> > > So, as you might see, it coredumps just when it attempted to recode non > english chars inside title. > > > What's wrong with this?? Thank you It's possible that you don't have the right libraries installed to support conversion from windows-1252 - FreeBSD often installs a minimal set of libs. Try this: iconv -l | grep -i windows-1252 jon -- This space left intentionally blank. |
From: PS <blo...@ma...> - 2005-03-02 16:45:42
|
Hello I compiled libxml++ and used the first example from manual (the dom parser) When I run in on windows everything worked ok, but on unix (I use FreeBSD 4.11) it gave me errors: ... ... Node name = title Node name = title line = 8 Text Node terminate called after throwing an instance of 'Glib::ConvertError' text = "Abort (core dumped) the sample xml file was: <?xml version="1.0" encoding="windows-1251"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Производство хлопкового...</title> So, as you might see, it coredumps just when it attempted to recode non english chars inside title. What's wrong with this?? Thank you |
From: Frank B. <ro...@we...> - 2005-03-01 12:23:13
|
Hi :-) i looked in the API, is in the API and found the xmlpp::Validator Class Reference is it posibel to validate XML files with xsd (schema not DTD) ? I wrote a Programm based on the testscripts from libxml.. cut & past and tow lines code from me :-) Greetings Frank #include "Schema_impl.h" #include <iostream> #include <libxml/xmlversion.h> #include <libxml/parser.h> #include <libxml/xmlmemory.h> #include <libxml/debugXML.h> #include <libxml/xmlschemas.h> #include <libxml/xmlschemastypes.h> Schema_impl::Schema_impl():schema(NULL) { } Schema_impl::~Schema_impl() { } bool Schema_impl::xmlfile(const std::string myxmlfile) { smyxmlfile += myxmlfile; const char *pmyxmlfile = myxmlfile.c_str(); doc = xmlReadFile(pmyxmlfile,NULL,0); return (true); } bool Schema_impl::xsdfile(const std::string myxsdfile) { const char *pmyxsdfile = myxsdfile.c_str(); smyxsdfile += myxsdfile; xmlSchemaParserCtxtPtr ctxt = xmlSchemaNewParserCtxt(pmyxsdfile); schema = xmlSchemaParse(ctxt); xmlSchemaFreeParserCtxt(ctxt); if (schema == NULL) { xmlSchemaCleanupTypes(); xmlCleanupParser(); xmlMemoryDump(); return (false); } return (true); } int Schema_impl::validate() { xmlSchemaValidCtxtPtr ctxt = xmlSchemaNewValidCtxt(schema); xmlSchemaSetValidErrors(ctxt, (xmlSchemaValidityErrorFunc) fprintf,(xmlSchemaValidityWarningFunc) fprintf,stderr); int ret = xmlSchemaValidateDoc(ctxt, doc); const char *pmyxmlfile = smyxmlfile.c_str(); if (ret == 0) { printf("%s validates\n", pmyxmlfile ); } else if (ret > 0) { printf("%s fails to validate\n", pmyxmlfile ); } else { printf("%s validation generated an internal error\n", pmyxmlfile ); } xmlSchemaFreeValidCtxt(ctxt); xmlFreeDoc(doc); xmlSchemaFree(schema); return (0); } ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 |
From: John C. <li...@vm...> - 2005-02-27 15:43:12
|
Hello, In my project I am parsing a number of xml documents, each one validated against a different inline dtd. I using only one parser and I am not freeing anything between calls to parse_memory(). My program crashes when exiting at the destructor of DomParser (see the backtrace), which means I am doing something wrong. --- The backtrace of the core dump is the following ---------------------------------------------------- #0 0x40cb5af4 in mallopt () from /lib/tls/libc.so.6 #1 0x40cb4a4b in free () from /lib/tls/libc.so.6 #2 0x407e694c in xmlRegFreeRegexp () from /usr/lib/libxml2.so.2 #3 0x407a2c78 in xmlSnprintfElementContent () from /usr/lib/libxml2.so.2 #4 0x40797b40 in xmlHashFree () from /usr/lib/libxml2.so.2 #5 0x407a30c9 in xmlFreeElementTable () from /usr/lib/libxml2.so.2 #6 0x407903fe in xmlFreeDtd () from /usr/lib/libxml2.so.2 #7 0x407905d7 in xmlFreeDoc () from /usr/lib/libxml2.so.2 #8 0x40746c13 in xmlpp::Document::~Document () from /usr/lib/libxml++-2.6.so.1 #9 0x4074bdbb in xmlpp::DomParser::release_underlying () from /usr/lib/libxml++-2.6.so.1 #10 0x4074ae40 in xmlpp::DomParser::~DomParser () from /usr/lib/libxml++-2.6.so.1 #11 0x080dfc81 in ~EnvLoader (this=0xbfffe5f4) at ldrScene.h:24 #12 0x08082313 in ~EnvDynSimulation (this=0xbfffdff0) at EnvDynSimulation.cpp:24 #13 0x08103d00 in main (argc=6, argv=0xbffffb54) at eds.cpp:28 -------------------------------------------------------------------------------------------------------- Can I use one parser to parse all of them or do I need one parser per document? If one parser is enough, do I need to free any resources between parses? System is: debian sarge (2.6.8-1-k7), libxml++2.6 (2.6.1-2) Thanx John Chronakis PS: Here is the code I use and a few words, if they help I want dtds hardcoded, and I couldnt find a method to force DomParser to use dtd from a char buffer. So, I am loading the (plain ascii) xml file into a char buffer, then adding the dtd inline (<doctype... [dtdcontent]>) and calling the parser like this: ... try { //mp_parser: pointer to my DomParser //docstring: the document with the inline dtd mp_parser->set_validate(); mp_parser->set_substitute_entities(); // Parse the document mp_parser->parse_memory(docstring); if(*mp_parser) { const xmlpp::Node* pNode = mp_parser->get_document()->get_root_node(); this->parse(pNode); // this has a method parse that does the real parsing // delete mp_parser->get_document() !!!Crashes!!! } } ... I call this sniplet a number of times, and I do not free anything between calls. When I tried to delete the document, it crashed. Everything works fine for the lifetime of my program, but when I finaly exit from it, I get a segfault. |
From: Kike F. <sis...@si...> - 2005-02-25 16:32:17
|
Hello, Is there a way to create an entity declaration of this type with Document::set_entity_declaration() function? <!ENTITY TDoc01 SYSTEM "proba.xml" NDATA CorpusId> set_entity_declaration() takes five arguments, one of which is the publicId. In libxml I can pass a NULL pointer as publicId so the library creates correctly the entity but in libxml++ I cannot pass a NULL pointer (I get "Exception caught: attempt to create string with null pointer") and passing an empty string always creates something like <!ENTITY TDoc01 PUBLIC "" "proba.xml" NDATA CorpusId> Am I doing something wrong or is this a bug? Thank you. -- Kike Fernandez <sis...@si...> IXA Taldea |
From: Cyril P. <cyr...@la...> - 2005-02-17 20:35:44
|
Hi In the CVS web browser, it's impossible to see/download insert_example_code.pl (and all others I tried) http://cvs.gnome.org/registry/file.cgi?cvsroot=/cvs/gnome&file=insert_example_code.pl&dir=libxml++/docs/manual returns Not Found The requested URL /registry/file.cgi was not found on this server. Apache/2.0.46 (Red Hat) Server at cvs.gnome.org Port 80 |
From: Juerg B. <ju...@pa...> - 2005-02-14 09:52:12
|
Hi Trying to build libxml++-2.9.2 fails with the following messages: Making all in manual make[2]: Entering directory `/usr/src/libxml++-2.9.2/docs/manual' make[2]: *** No rule to make target `insert_example_code.pl', needed by `libxml++.xml'. Stop. make[2]: Leaving directory `/usr/src/libxml++-2.9.2/docs/manual' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/libxml++-2.9.2/docs' make: *** [all-recursive] Error 1 *** Error: make *** ERROR: libxml++-2.6-x86-glibc-2.3-gcc-3.4-2-2.9.2-1 It looks like insert_example_code.pl is missing in EXTRA_DIST... Regards, J=C3=BCrg |
From: Christophe de V. <cde...@al...> - 2005-02-14 08:50:52
|
Chris Poppe a =E9crit : >Hello, > >Will this c++ wrapper be compatible with wince?=20 > =20 > It is not in our plans to work on it, but if anybody is willing to do=20 it, it would be nice (I don't think there is a lot to do, but I don't=20 have a winCE to work on). Regards, Christophe |
From: Christophe de V. <cde...@al...> - 2005-02-13 20:40:44
|
Hi again, I'm still having problem with the packaging. A distcheck produce this result, even after a distclean : doxygen Doxyfile Searching for include files... Searching for example files... Searching for images... Searching for dot files... Searching for files to exclude Reading input files... Reading and parsing tag files Error: Tag file `libstdc++.tag.xml' does not exist or is not a file. Skipping it... Error: Tag file `../../../glibmm/docs/reference/glibmm_doxygen_tags' does not exist or is not a file. Skipping it... No input read, no output generated! make[3]: *** [2.9/html/index.html] Error 1 make[3]: Leaving directory `/home/cdevienne/prog/libxml++/libxml++-2.9.2/=build/docs/reference' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/cdevienne/prog/libxml++/libxml++-2.9.2/=build/docs' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/cdevienne/prog/libxml++/libxml++-2.9.2/=build' make: *** [distcheck] Error 2 The strange thing is that from what I understood in the Changelog, the documentation is supposed to be put in the dist, not re-generated. I did not (yet) dig into this, but if you have any idea... Thanks Christophe |
From: Christophe de V. <cde...@al...> - 2005-02-11 22:55:56
|
Hi I have two little problem with the packaging : - first, a README file in docs/manual is referenced by EXTRA_DIST, but is not in the cvs. Is it missing or do I take is off ? - The second problem is dummy. Make dist is incomplete because some file paths are too long : tar: libxml++-2.9.2/docs/reference/html/classxmlpp_1_1internals_1_1ScopedConstructCallbackDeactivator.html: file name is too long(max 99); not dumped tar: libxml++-2.9.2/docs/reference/html/classxmlpp_1_1internals_1_1ScopedConstructCallbackDeactivator-members.html: file name is too long (max 99); not dumped tar: Error exit delayed from previous errors chmod -R a+w libxml++-2.9.2 >/dev/null 2>&1; rm -rf libxml++-2.9.2 The tarball is produced anyway, but will be missing a file. Since it's the documentation, it's not critical but still, this is annoying. If anybody have a solution... Regards Christophe |
From: Nick W. <Nic...@so...> - 2005-01-24 14:50:15
|
Hello, Having used libxml++ successfully in a Linux environment, I'm having a bit of a job getting it to work in Windows (XP; MinGW; gcc 3.4.2). I'm using 1.0.4, so the only dependency is straight libxml2. I compiled libxml2 using the supplied MinGW makefile (which needed a little tweaking as it had syntax errors!) and ended up with a static library libxml2.a, which I installed in the appropriate directory. However, lacking a full Cygwin environment (I do not want the application I am writing to depend on Cygwin shared libraries) I built libxml++ in a somewhat non-ustandard way. This involved basically moving round the directories and creating a simple makefile where each libxml++ source file was compiled using: g++ -c -Ic:\mingw\include file.cc i.e. no preprocessor directives. I also #ifdef'ed out the stuff in api_export.h, as I did not want a DLL of libxml++, just a static library, and the stuff in api_export.h was causing the compilation to throw up all manner of warnings and errors. libxml++ successfully built that way, and I ended up with a libxml++.a which I moved to the appropriate lib directory. However when I attempted to compile a small sample libxml++ program: #include <libxml++/libxml++.h> int main() { xmlpp::SaxParser p; return 0; } compilation was successful, but linking, with g++ -o test.exe test.o -Lc:\mingw\lib -lxml++ -lxml2 I got all manner of obscure linker errors spewed out, e.g.: undefined reference to _imp_ZN5xmlpp9SaxParser1Eb undefined reference to _imp__xmlFree undefined reference to _imp_ZN5xmlpp11ContentNodeC2EP8_xmlNode and on and on for about 20 lines. The same thing happened when I attempted to compile my FLTK-based GUI application with libxml++; it works fine with the XML parsing code commented out (i.e. I can compile and build an FLTK application under my environment) but spewed weird linker errors when I attempted to link in libxml2/libxml++. I think these sorts of linker errors, featuring internal compiler types, are normally to do with mixing source compiled with one compiler version and libraries compiled with another, aren't they? However in my case everything was compiled with gcc/g++ 3.4.2 (supplied with the latest MinGW). One final observation is that the samples that come with straight libxml2 compiled (as part of the libxml2 make process) and ran fine. I'm guessing I did not include a crucial preprocessor directive when compiling libxml++..... I should add that I have little experience of compiling stuff under Windows, other than under Visual C++, which I don't have on my current system (and besides, I want to attempt to use only free software within my installation of Windows!) Thanks, Nick |
From: Christophe de V. <cde...@al...> - 2005-01-23 22:12:39
|
stz...@we... wrote: >Hello.. > > Hi ! >I would like to use libxml++ and I can create a *.lib file but when I try to make a DLL file under VC++ 2003 I recieve the following error messages: >----- >libxml++ error LNK2001: unresolved external symbol "public: __thiscall Glib::ustring::~ustring(void)" (??1ustring@Glib@@QAE@XZ) >libxml++ error LNK2001: unresolved external symbol "public: __thiscall Glib::ustring::ustring(char const *)" (??0ustring@Glib@@QAE@PBD@Z) >libxml++ error LNK2001: unresolved external symbol "public: __thiscall Glib::ustring::ustring(class Glib::ustring const &)" (??0ustring@Glib@@QAE@ABV01@@Z) >libxml++ error LNK2001: unresolved external symbol "public: __thiscall Glib::ustring::ustring(void)" (??0ustring@Glib@@QAE@XZ) >... >----- > >It seams that the linker hasn't found the glib library. I have added the following *.lib files in my 'Microsoft Visual Studio .NET 2003\Vc7\lib' folder: >----- >glib-2.0.lib >gmodule-2.0.lib >gobject-2.0.lib >gthread-2.0.lib >----- > >What I'm doing wrong? > You're missing glibmm, which is the C++ wrapper of glib. Regards, Christophe |
From: Mariano <ma...@uv...> - 2005-01-20 20:29:41
|
Hi, I was looking for some documentation on using this library, such as a tutorial, a manual, or a book (online or printed). The examples and the reference are ok, but I would need a little more info. Thanks! cheers, Mariano Guadagnini |
From: <stz...@we...> - 2005-01-16 10:22:20
|
Hello.. I would like to use libxml++ and I can create a *.lib file but when I try to make a DLL file under VC++ 2003 I recieve the following error messages: ----- libxml++ error LNK2001: unresolved external symbol "public: __thiscall Glib::ustring::~ustring(void)" (??1ustring@Glib@@QAE@XZ) libxml++ error LNK2001: unresolved external symbol "public: __thiscall Glib::ustring::ustring(char const *)" (??0ustring@Glib@@QAE@PBD@Z) libxml++ error LNK2001: unresolved external symbol "public: __thiscall Glib::ustring::ustring(class Glib::ustring const &)" (??0ustring@Glib@@QAE@ABV01@@Z) libxml++ error LNK2001: unresolved external symbol "public: __thiscall Glib::ustring::ustring(void)" (??0ustring@Glib@@QAE@XZ) ... ----- It seams that the linker hasn't found the glib library. I have added the following *.lib files in my 'Microsoft Visual Studio .NET 2003\Vc7\lib' folder: ----- glib-2.0.lib gmodule-2.0.lib gobject-2.0.lib gthread-2.0.lib ----- What I'm doing wrong? Any suggestions what I can do to fix this linker errors? Has anybody already created a dll file and could send it to me? PS: I'm a newbie and I'm sorry for my lack of knowledge.. Thanks in advance for your help.. ciao.. ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 |
From: Cyril P. <cyr...@la...> - 2005-01-13 19:48:30
|
Same problem with libxml++-2.9.1 Cyril PICARD wrote: > libxml++-2.8.0 > > I've just seen that 2.9.1 is available. I will try it soon and I'll let > you known about it. > > Christophe de Vienne wrote: > >> Cyril PICARD wrote: >> >>> For for the link, it's quite simpler now... but still SIGABRT... >>> Still no idea on my side... >> >> >> >> Wich version of libxml++ are you using ? >> Does the problem happen with the lastest version ? >> >> Regards, >> >> Christophe >> >> >> >> >> ------------------------------------------------------- >> The SF.Net email is sponsored by: Beat the post-holiday blues >> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. >> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt >> _______________________________________________ >> Libxmlplusplus-general mailing list >> Lib...@li... >> https://lists.sourceforge.net/lists/listinfo/libxmlplusplus-general > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Libxmlplusplus-general mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libxmlplusplus-general > |
From: Chai, J. (N-VB Enterprises) <jin...@lm...> - 2005-01-13 15:19:39
|
Hi, I am new to the libxml++(1.0) and trying to walk through the examples. For the dom_xpath example, I tried to do a dynamic_cast for the nodes contained in the NodeSet returned by the Node find method. But it always fails. Is there anything I am doing wrong? Thanks, Jin ======================= // -*- C++ -*- /* main.cc * * Copyright (C) 2002 The libxml++ development team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <libxml++/libxml++.h> #include <iostream> void xpath_test(const xmlpp::Node* node, const std::string& xpath) { std::cout << std::endl; //Separate tests by an empty line. std::cout << "searching with xpath '" << xpath << "' in root node: " << std::endl; xmlpp::NodeSet set = node->find(xpath); std::cout << set.size() << " nodes have been found:" << std::endl; //Print the structural paths: for(xmlpp::NodeSet::iterator i = set.begin(); i != set.end(); ++i) { xmlpp::Element* eNode = dynamic_cast<xmlpp::Element*> (*i);//<==================== std::cout << " " << (*i)->get_path() << " " << (*i)->get_name()<<std::endl; if (eNode) std::cout << "Element name:" << eNode->get_name() << std::endl;// <======This line never get printed. } } int main(int argc, char* argv[]) { std::string filepath; if(argc > 1 ) filepath = argv[1]; //Allow the user to specify a different XML file to parse. else filepath = "example.xml"; try { xmlpp::DomParser parser(filepath); if(parser) { const xmlpp::Node* root = parser.get_document()->get_root_node(); //deleted by DomParser. if(root) { // Find all sections, no matter where: xpath_test(root, "//section"); // Find the title node (if there is one): xpath_test(root, "title"); std::cout << std::endl; // And finally test whether intra-document links are well-formed. // To be well-formed, the 'linkend' attribute must refer to // an element in terms of its 'id'. // // Find out whether there are linkend attributes that don't have // corresponding 'id's std::cout << "searching for unresolved internal references " << "(see docbook manual):" << std::endl; xpath_test(root, "//xref/@linkend"); } } } catch(const std::exception& ex) { std::cout << "Exception caught: " << ex.what() << std::endl; } return 0; } ======================== <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"> <article> <title>An Article</title> <section id="section1"> <title>A section</title> <para>This is a paragraph.</para> </section> <section id="section2"> <title>Another section</title> <section id="section3"> <title>A sub-section</title> <para>This paragraph refers to <xref linkend="section1"/>, <xref linkend="section2"/>, and <xref linkend="section4"/>.</para> </section> </section> </article> |