You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/11/01 15:22:35 UTC

DO NOT REPLY [Bug 597] - _preroot Vector is not serialized when calling serialize(Element)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=597>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=597

_preroot Vector is not serialized when calling serialize(Element)

rahul.srivastava@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From rahul.srivastava@sun.com  2001-11-01 06:22 -------
I looked in the javadocs and it clearly says "Serializes the DOM element..." for
serialize(Element). Anyways. When you use serialize(Document), you may have PI
and DOCTYPEs and thus, serializePreRoot() to serialize them. If you use
serialize(Element), that Element can be any element of the complete DOM tree.
Why should PI or DOCTYPEs get serialized in this case!!. It could be possible
that you are using the same serializer, to serialize only specific elements of
the DOM tree. In that case, *if* PI/DOCTYPEs are also serialized with
serialize(Element) then you have multiple PIs and DOCTYPEs!!. 

There is a clear difference between serialize(Document) and serialize(Element).
The former is used to serialize a complete DOM, whereas the latter is used to
serialize, a portion of DOM starting from the specified Element.

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