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: 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-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: 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: Darko M. <da...@uv...> - 2005-08-05 13:27:49
|
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. Version 1.04 does not support unicode, but it can work fine with utf-8 because it can be stored in std::string. The question is do you really need utf-16 or utf-32? In 98% percent of cases the answer is no. Darko |
From: tikcireviva <tik...@ya...> - 2005-08-10 00:07:55
|
Thanks Darko, that helps either. Thank you very much. -tikcireviva Darko Miletic wrote: > 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. > > > Version 1.04 does not support unicode, but it can work fine with utf-8 > because it can be stored in std::string. > The question is do you really need utf-16 or utf-32? In 98% percent of > cases the answer is no. > > 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: tikcireviva <tik...@ya...> - 2005-08-10 00:25:49
|
Hi Everyone, After going through a couple examples, I found that the XPath feature is pretty handy. And I wonder why there is XPath example for DOM instead of SAX? If libxml++ do support this feature, could you mind show me any examples or a way to tackle this? While playing with the XPath example, I have enountered some difficulties in order to extract the value from "my-xpath". For instance, let's say if I have the following xml-like input. <title>A section</title> And I have this XPath '/title', how can I get the 'A section' value from a node? (A node/nodeset should be in this type 'xmlpp::NodeSet' according to the example) I know this is a really dumb question, and I am really hoping that you guys could give me a helping hand. Thank you very much. Best wishes, -tikcireviva. |
From: Stefan S. <se...@sy...> - 2005-08-10 07:18:13
|
tikcireviva wrote: > Hi Everyone, > > After going through a couple examples, I found that the XPath feature is > pretty handy. And I wonder why there is XPath example for DOM instead of > SAX? To be able to look up nodes via xpath expressions you need a dom tree to navigate to match the pattern from the expression. These patterns can become arbitrarily complex and they typically involve nodes far appart in the document (or even across multiple documents !), so matching with a stream-based protocol would be very hard (you would have to reread the stream over and over again). Regards, Stefan |