Extending XML::LibXML through XS
"Emmanuel Rodriguez" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have a perl application that needs to walk an XML::LibXML DOM tree in order to display it in a Gtk2::TextView. I have to recursively go through each node as I need to highlight them with the proper style. The multitude of XS calls triggered by this are hurting the application's performance. I rewrote this part in C and I need to link it to perl through XS. The Gtk2 bindings make this possible by installing the typemap and .h files that they use. I can easily pass a Gtk2::Widget from perl to XS, so this part is covered. Right now I'm struggling with the exchange of LibXML types between perl and XS. I could only find the typemap file used by XML::LibXML in the source distribution, so I had to copy it. Now my module builds but it can't be loaded, perl gives me the following error message: symbol lookup error: Xacobeo/XS/XS.so: undefined symbol: PmmSvNode How can I manage to pass the XML::LibXML data types from perl to XS? Are the typemap and header files of XML::LibXML shareable with other modules? -- Emmanuel Rodriguez _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs