event order
"Pawel S. Veselov" <[email protected]>
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <Pine.GSO.4.50.0302072143570.23695-100000@druid> |
Hi !
I have a note regarding the order of the events that are proposed in
the API. It is, of course, implementation dependent, but API guides
the implementation to always start with START_DOCUMENT event. Actually,
this event usually never happens at all, i.e. first call to nextToken()
will not generate it.
The problem with that, IMVHO, is that the document starts only
after the document declaration has been read. That pretty much
comes from the DOM, since DOM needs a document type in order to
create the Document object, and perhaps it would be more natural, if
DOCDECL event happens first, so the DocumentType object is created,
and then START_DOCUMENT follows, so the Docment object is created on
existing DocmentType. Otherwise, the document creation has to be
deferred to first event after DOCDECL.
Just $.02
Thanks,
Pawel.
Bye.
--
Pawel S. Veselov (MTS, Service Provisioning and OMA) __ __(O) _ __
e-mail: [email protected] \ V /| || ' \
HomePage: http://manticore.2y.net \_/ |_||_|_|_|
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/LIgTpC/vN2EAA/xGHJAA/2U_rlB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
[email protected]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/