[xmlc] Accessing the body in a Document

Franck Routier <[email protected]> Mon, 14 Jun 2010 11:54:29 +0200
Newsgroups gmane.comp.java.enhydra.xmlc
Organization Axège sarl
Message-ID <1276509269.6447.6.camel@franck-laptop>
This is a multi-part message in MIME format...

------------=_1276509276-5928-1919
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

Hi,

I am playing with components in Barracuda, that I'd like to render in
the body tag of the document (these are script components, currently
rendered in the head, but yslow and google speed suggest it might be
better to render some of them at the end of the document).

So, in my renderer, I access to the Document using the following code :

Node node = view.getNode();
Document doc = node.getOwnerDocument();
Element elRoot = doc.getDocumentElement();

So here, doc is an ....Impl generated by xmlc, and elRoot corresponds to
the htlm tag (in my example I have a XHTMLHtmlElement).
Until now I'm fine.

Node child = elRoot.getFirstChild();

--> child is of type HTMLHeadElement. Ok.

child = child.getNextSibling();

--> child is null. Argh.

Is there an explaination why my document does not give me access to the
body Node ?

Thanks in advance,

Franck




------------=_1276509276-5928-1919
Content-Type: text/plain; charset="UTF-8"; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: quoted-printable


--
You receive this message as a subscriber of the [email protected] mailing list=
.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=3Dhelp
OW2 mailing lists service home page: http://www.ow2.org/wws

------------=_1276509276-5928-1919--