Hi Jason,
First of all, thanks for your response.
I am building an XML parser in C++. The manner in which a document is
parsed is defined in a XML document, where handler functions are defined
for certain tags and attributes.
These functions are registered in a function repository beforehand and
can be of any kind, for now only C++ and Perl. These functions have
Xerces objects as arguments. I could stick solely to C++ functions, but
I figured if Xerces had a similar construction just like wxPerl has,
this could be a nice addition to my application.
Greetings,
Ben
-----Oorspronkelijk bericht-----
Van: Jason Stewart [mailto:jason.e.stewart@xxxxxxxxx]
Verzonden: woensdag 16 augustus 2006 07:47
Aan: c-users@xxxxxxxxxxxxxxxxx; p-dev@xxxxxxxxxxxxxxxxx
Onderwerp: Re: Accessing Xerces Perl object's from C++.
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 <ben@xxxxxxxxxxx> 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.
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|