Hi, Tobias. The W3C standardized the interfaces for the DOM, but not their internal representation. If you directly access the memory, you imply that Xerces-J and Xerces-C have a binary compatible DOM implementation.
The better way is to call the objects methods, which conforms to the OO paradigm. I do not believe that it is possible to do that. XML has been invented as data exchange format, so serializing it from java and reparsing in C should be best practice. Having used Xerces-C and Xalan-C, I found out that - Xalan-C cannot work with the Xerces-C DOM - Xalan-C brings a parser and a DOM, but this DOM is readonly. Why that? Hiran > -----Urspr�ngliche Nachricht----- > Von: Tobias McNulty [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 28. November 2001 18:29 > An: [EMAIL PROTECTED] > Betreff: Xerces-J <-> Xerces-C > > > I have a very simple question: Is it possible to gain direct access > to a Xerces-J DOM from Xerces-C, and vise versa? > > I want to be able to access, read, and manipulate the Xerces-J DOM > from Xerces-C. If I can't do it directly I will use JNI to access > Java from C, but direct access to the DOM from the corresponding > Xerces APIs would be best. > > Thanks for your time, > > Toby > -- > Tobias McNulty > Data Description, Inc. > 840 Hanshaw Road, Suite 9 > Ithaca, NY 14850 > Phone: (607) 257-1000 > E-mail: [EMAIL PROTECTED] > Web: www.datadesk.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
