Compile using xerces 3

15 views
Skip to first unread message

Pascal

unread,
Nov 6, 2009, 7:10:57 AM11/6/09
to pococapsule
Hi everyone

Trying to compile the xmlreader library, which obviously seems
necessary to create an IoC example, I was able to compile
xerces-3.0.1. Doing so, however, I was alerted at compile time about
missing headers in "dom/deprecated" include folder, so I concluded
that it is intended to use pococapsule with xerces version 2.8.

However, while compiling xerces-3.0.1 remains fairly maintainable with
MinGW, compiling 2.8 did not work for me. I was advised to use the
cygwin make program with MinGW g++ and many other workarounds, but
nothing succeeded.

So my question: Is there a way to use IoC capability of pococapsule
without an XML-descriptor? Or can I somehow use xerces-3 with
pococapsule?

Thanks for any help and best regards
Pascal

Ke Jin

unread,
Nov 6, 2009, 2:48:47 PM11/6/09
to pococapsule
On Nov 6, 4:10 am, Pascal <pascal_kess...@hotmail.com> wrote:
> Hi everyone
>
> Trying to compile the xmlreader library, which obviously seems
> necessary to create an IoC example, I was able to compile
> xerces-3.0.1. Doing so, however, I was alerted at compile time about
> missing headers in "dom/deprecated" include folder, so I concluded
> that it is intended to use pococapsule with xerces version 2.8.
>
> However, while compiling xerces-3.0.1 remains fairly maintainable with
> MinGW, compiling 2.8 did not work for me. I was advised to use the
> cygwin make program with  MinGW g++ and many other workarounds, but
> nothing succeeded.
>
> So my question: Is there a way to use IoC capability of pococapsule
> without an XML-descriptor?

Kind of .... you can use the pxencode the convert a XML descriptor off
line and use the output non-XML descriptor on-line. That is how we
work on VxWorks.

> Or can I somehow use xerces-3 with
> pococapsule?

PococCapsule is merely an application that uses xerces API without
depending on its versions. Certainly, if xerces-3 API is not source
level backward compatible to early versions, minor porting effort will
be needed.

Ke

Ke Jin

unread,
Nov 6, 2009, 3:01:43 PM11/6/09
to pococapsule


On Nov 6, 4:10 am, Pascal <pascal_kess...@hotmail.com> wrote:
> ...
> Is there a way to use IoC capability of pococapsule
> without an XML-descriptor?

See user guide section 2.3: "Use encoded and/or in memory
descriptions"

Ke

Bryan Raney

unread,
Nov 23, 2009, 5:44:34 PM11/23/09
to pococ...@googlegroups.com
Hi Ke and Pascal,
I have sucessfully compiled PocoCapsule with Xerces 3 in Windows. I
only had to make the following two changes:

(1) In "src/xmlreader/Makefile", on line 17: updated version number of
library (from "xerces-c_2" to "xerces-c_3")

(2) In "src/xmlreader/xmlreader.h", removed line 42, which #includes a
deprecated header file. The "DOMString" class was deprecated in
Xerces API version 2, and finally removed in version 3, but luckily
doesn't seem to be actually used in the PocoCapsule code!

I've also attached a patch file.

NOTE: I don't use the "wshelper" directory, so there may be further
changes required in there that I didn't see. I also haven't tried
compiling in Linux yet.

Hope that is helpful to somebody,
-- Bryan
patch-xerces-3.txt

Ke Jin

unread,
Nov 26, 2009, 5:18:21 PM11/26/09
to pococapsule
Bryan,

Many thanks for this. I will add the port to the release.

Ke

On 11月24日, 上午6时44分, Bryan Raney <bra...@gmail.com> wrote:
> Hi Ke and Pascal,
>
> patch-xerces-3.txt
> 2K查看下载
Reply all
Reply to author
Forward
0 new messages