Re: Accessing Xerces Perl object's from C++.

"Jason Stewart" <[email protected]> Wed, 16 Aug 2006 11:16:44 +0530
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
Hi Ben,

Not sure if this is best discussed on the p-dev list - most of the
Perl-related stuff goes on there. I'll cross-post for now...

On 8/15/06, Ben Meijering <[email protected]> wrote:

> I have compiled the perl interpeter into my executable. I want to invoke
> a perl method from C++, this method returns a Xerces perl object. Now
> what I want to know is if there is any way I could obtain the C++ object
> pointer from this Xerces object. Using wxPerl for example, this can be
> done using the "wxPli_sv_2_object" method.

The short answer is 'no'.

To give you a better answer, I'll need to understand what you are
doing, and why - so please bear with me.

Why do you need to embed perl in your C++ program? Is using
XML::Xerces directly from Perl not adequate?

If you already have a C++ program, why not using Xerces-C directly and
not use Perl at all?

My recommendation is to use either an all-Perl solution or an all-C++
solution and not mix the two - it will hurt your brain (it hurts mine
;-)

Cheers, jas.