Hi, Tobias. What we did (to finally get the solution) was this:
- Parse with Xerces - Modify the DOM as needed - Serialize to XML (inside memory) - Parse and do XSLT with Xalan I know it is a pain, but nothing else worked for us. Hiran > -----Urspr�ngliche Nachricht----- > Von: Tobias McNulty [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 29. November 2001 15:44 > An: [EMAIL PROTECTED] > Betreff: Re: AW: Xerces-J <-> Xerces-C > > > Does this mean that you have to reparse the DOM when going > from a read/write > Xerces DOM to a Xalan DOM? > > > >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. > > >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 > > > > > 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 > >> > > > -- > 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]
