tag:blogger.com,1999:blog-7764126179108633515.post8317552320229065965..comments2023-11-26T05:25:06.785+03:00Comments on Ilya Martynov's blog: libxml++ vs xerces C++Ilya Martynovhttp://www.blogger.com/profile/03019237563335985484noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-7764126179108633515.post-42856051387957622772015-11-27T08:05:23.615+03:002015-11-27T08:05:23.615+03:00I think poor design of Xerces mostly has to do wit...I think poor design of Xerces mostly has to do with XML APIs which were designed for Java. We should just stop using XML but if there is no choice and we have to use it - Xerces is the only full implementation.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7764126179108633515.post-57589991017747288252011-04-21T18:35:15.141+04:002011-04-21T18:35:15.141+04:00I am in the situation that I am forced to use Xerc...I am in the situation that I am forced to use Xerces-C++ since I need the extra features Boris describes like the schema validation.<br /><br />However: In 2011 their documentation is still inadequete and Boris his link currently 404's but at least there is in some places some doxygen documentation which helps a little.<br /><br />But to make matters worse, I need to use Xalan-C as well to transform the XML I receive into flat files. The last release of this was in 2005 (standard is from 1999 so no real need for a new release once it is fully working) and 99% of it contains no documentation at all. The doxygen is just empty and just shows the function definitions.<br /><br />IMO this is poor performance for a library developer(s)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7764126179108633515.post-49395580578109732192011-01-22T15:39:58.166+03:002011-01-22T15:39:58.166+03:00I fully agree with the initial post of this blog.
...I fully agree with the initial post of this blog.<br /><br />Initially my application used TinyXml. In a moment of mental aberration I decided that I need to change that to something more "standard" and started to use xerces-c 2.8. (although everything I needed worked with TinyXml)<br />It took me hours of TryAndError and googling around to get my simple DOM operations work the way it worked before.<br /><br />My next idiocy was the idea to update xerces-c from 2.8 to 3.1.1. It turned out that I will have to spend another several hours, because they simply changed almost everything completly.<br /><br />Still thinking of: "I need to use a common standard" I thought of using libxml2 and found this blog which pointed me to libxml++.<br /><br />And: Wow! I did not know that handling XML could be that simple. It took me just minutes to get my code running again: Easier, less code and more intuitive than ever...<br /><br />I do not understand why xerces-c is almost undocumented at all. Their few samples are barely helpful. (DOM)Parsing an XML Document from std::string is a real challenge and makes you produce miles of code. I don't like that...<br /><br />Ilya: thank you!Herwignoreply@blogger.comtag:blogger.com,1999:blog-7764126179108633515.post-65333698556703521502010-03-25T01:16:53.900+03:002010-03-25T01:16:53.900+03:00I have been using Xerces-c for over two years in a...I have been using Xerces-c for over two years in a project and very recently get in contact with libxml++. I am not migrating to that library but it seems to be easier to develop applications. I am sure that Xerces is more complete and compliant with W3C spec but I think that libxml++ has 30% that makes 90%.Unknownhttps://www.blogger.com/profile/17984997667282556643noreply@blogger.comtag:blogger.com,1999:blog-7764126179108633515.post-32912410772960481502009-07-23T02:28:07.800+04:002009-07-23T02:28:07.800+04:00Xerces is a bloated, poorly designed and the docum...Xerces is a bloated, poorly designed and the documentation is attrocious. I fully agree with the original post. By the way, I too ended up using libxml2 instead. It's not exactly modern C++ (actually it's not even modern C IMO) but it's light-weight, doesn't get in my and (as you pointed out) actually has some useful documentation to go with it.antredhttps://www.blogger.com/profile/13471717424499982664noreply@blogger.comtag:blogger.com,1999:blog-7764126179108633515.post-17251232881647607202009-02-25T07:02:00.000+03:002009-02-25T07:02:00.000+03:00Normally I wouldn't comment on such an old blog po...Normally I wouldn't comment on such an old blog post, but it's Feb. 2009 and the documentation for Xerces is still completely inadequate. If the developers think this is enough documentation for people to get xerces working in their app, they are dreaming. And it's not that I'm an inexperienced programmer- I just don't have all damn day to play with their API and read their source. Especially not for something like XML. I'll be trying out libxml and seeing how that goes.Kevinhttps://www.blogger.com/profile/10511063749864825443noreply@blogger.comtag:blogger.com,1999:blog-7764126179108633515.post-290884890146417642009-01-30T16:29:00.000+03:002009-01-30T16:29:00.000+03:00Hi, I just want to ask a doubt about Xerces-C++ , ...Hi, <BR/>I just want to ask a doubt about Xerces-C++ , will there be any "cout" like statements or to be more specific logging in this parser ..what is the default path of this log file , if it is created.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7764126179108633515.post-70221952374603263972008-10-30T01:39:00.000+03:002008-10-30T01:39:00.000+03:00It's charming that the link to the "easy" Xerces d...It's charming that the link to the "easy" Xerces documentation, is now broken. (missed it or Xerces-C++ Programming Guide).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7764126179108633515.post-91156203317416606012008-10-10T12:04:00.000+04:002008-10-10T12:04:00.000+04:00same like you totally do not understand the xerces...same like you <BR/>totally do not understand the xerces……thanks your advice!Rodgerhttps://www.blogger.com/profile/16393437156620746905noreply@blogger.comtag:blogger.com,1999:blog-7764126179108633515.post-42817640512477423622008-09-23T19:52:00.000+04:002008-09-23T19:52:00.000+04:00still doesn't plug and chug. grr... how to add lib...still doesn't plug and chug. grr... how to add library right?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7764126179108633515.post-83610723774606602642007-08-24T14:09:00.000+04:002007-08-24T14:09:00.000+04:00Boris, thanks for correction. I've updated my blog...Boris, thanks for correction. I've updated my blog post.Ilya Martynovhttps://www.blogger.com/profile/03019237563335985484noreply@blogger.comtag:blogger.com,1999:blog-7764126179108633515.post-38098405767737169242007-08-24T13:35:00.000+04:002007-08-24T13:35:00.000+04:00I think you've missed the Xerces-C++ Programming G...I think you've missed the <A HREF="http://xml.apache.org/xerces-c/program.html" REL="nofollow">Xerces-C++ Programming Guide</A>. It covers both DOM and SAX usage.<BR/><BR/>As for examples, I agree they are overly complex for a beginner. Though, to be fair, they are much closer to a real-world application in that they allow you to turn on/off support for namespaces, XML Schema validation, different input/output encodings, etc. These are common expert vs novice and serious application vs quick hack problems.Anonymousnoreply@blogger.com