C++, Java, DOM support
-
Hello, I'd like to make a project that has DOM support. I'm thinking of using Xerces. What I'd like too is to have a API to access the same DOM implementation both in C++ and JAVA..... I mean, some apps will use it through C++, others in Java, while the rest of the library will be C++. Is Xerces a good solution for that? As I see there are both Java and C++ bindings, will this help achieve what I need?
-
Hello, I'd like to make a project that has DOM support. I'm thinking of using Xerces. What I'd like too is to have a API to access the same DOM implementation both in C++ and JAVA..... I mean, some apps will use it through C++, others in Java, while the rest of the library will be C++. Is Xerces a good solution for that? As I see there are both Java and C++ bindings, will this help achieve what I need?
AFAIK the two Xerces (C++/Java) implementations are completely separate. It sounds like you have read something that says they are one implementation, could you supply a link to that?
gotchagotcha wrote:
What I'd like too is to have a API to access the same DOM implementation both in C++ and JAVA
Why? The whole point is that the DOM is the standard and therefore the API's are mostly identical. Designing your applications with a DAL probably provides a much larger benefit than sharing a DOM implementation. Also to use native code from Java requires the use of JNI so you can't directly utilize a C++ anything by writing pure Java code. Anyway if you are bent on doing this I suppose you could provide the JNI wrappers for the C++ Xerces DOM. It seems pointless to me but whatever.