Hi Niclas,

I never used the standard dom implementation directly, its api is terrible. Take a look at http://www.jdom.org/, you may feel more 'at ease' with it.

Phil


Le 22 août 2009 à 13:10, Niclas Hedhman a écrit :

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??


Cheers
--
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

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


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

Reply via email to