Gang,
I hate XML!! And desperately need someone to assist;

I got the following HTML;
<html>
 <body>
   <ul id="bookings"/>
 </body>
</html>

Couldn't be simpler, right??

Ok, I parse that with;
InputStream pageResource = pageClass.getResourceAsStream( pageName );
       Document dom = documentBuilder.parse( pageResource );
and then do

   Element bookingList = dom.getElementById( "bookings" );

Can someone tell me why "null" is returned??

Just a guess, but could it be because the ul is an empty element? If you actually put something in your ul, does that change anything??


Cheers,
=David



_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to