You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Marc Logemann <lo...@moregroupware.org> on 2002/05/01 10:54:40 UTC

Xerces / Dom3 / Jaxp

Hi,

i am quite new to Xerces and jaxp, but have some history in using XML.
Perhaps you can help me understanding a few concepts.

Right now i am using jaxp with the default parser. There i am mainly using
Dom2 for retrieving and changing my documents.

1. with xerces 2.x we have a bootstrap mechanism which is defined in dom3.
This is quite nice, but what about the bootstraping in jaxp? Will it be
obsolete?

2. If i want to have pretty-printed output from an in-memory tree, is the only
way to use org.apache.xml.serialize or should we use the dom3 DOMWriter for
this?

Thx for any input on this.... IMO its not so easy to understand all, cause DOM3
is not really finished (or?) and Dom2 has limitations and Parser dependent
technology is also not the best way to do it.


Marc Logemann (Loge)

* @home and hacking away again.
check IRC: #moregroupware    on: irc.openprojects.net


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: Xerces / Dom3 / Jaxp

Posted by Elena Litani <el...@ca.ibm.com>.
Hi Marc, 

Marc Logemann wrote:
> 1. with xerces 2.x we have a bootstrap mechanism which is defined in dom3.
> This is quite nice, but what about the bootstraping in jaxp? Will it be
> obsolete?

No. Some people will continue using JAXP (that provides bootstrapping
for both DOM/SAX parsers), while others will switch to DOM L3. I would
expect people who use DOM to use DOM L3 bootstrapping.
 
> 2. If i want to have pretty-printed output from an in-memory tree, is the only
> way to use org.apache.xml.serialize or should we use the dom3 DOMWriter for
> this?

If you are looking for interoperability you should use DOM L3 interfaces
and not xerces specific interfaces.
However, you should keep in mind that DOM L3 is still a working draft.
So changes in the interfaces are expected and you might need to modify
the code in your implementation. I would expect DOM L3 load and safe
interfaces to stabilize by the end of summer.

Thx.
-- 
Elena Litani / IBM Toronto

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org