Hi Niclas, Yes, you are right, maybe you need to declare the DOCTYPE first, then need to download it from web.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <body> <ul id="bookings"/> </body> </html> On Sun, Aug 23, 2009 at 5:58 AM, Niclas Hedhman <[email protected]> wrote: > > So, what you are really saying is that the DOM parser in JDK doesn't know > of xhtml in itself, and must be 'taught' via DOCTYPE... > > Is the XHTML's DOCTYPE definition shipped with the JDK, or does that know > become a 'Download' on use issue? > > Cheers > Niclas > > On Aug 23, 2009 12:22 PM, "Qingyue Zhou" <[email protected]> wrote: > > Hi Niclas, > JavaDoc says: "The DOM implementation must have information that says > which attributes are of type ID. Attributes with the name "ID" are not of > type ID unless so defined. Implementations that do not know whether > attributes are of type ID or not are expected to return null." > You need define the "Id" first, > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html [ <!ELEMENT html (body) > > <!ELEMENT body (ul*) > > <!ATTLIST ul id ID #REQUIRED> ]> > > <html> <body> <ul id="bookings"/> </body> </html> > Cheers, > Qingyue > > On Sat, Aug 22, 2009 at 7:10 PM, Niclas Hedhman <[email protected]> > wrote: > >> > > Gang, > I hate XML!! And desperately need someone to assist; > > I got >> the following HTML; > <ht... >> >> > _______________________________________________ > qi4j-dev mailing list >> > [email protected]... >> > > > _______________________________________________ > 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 > >
_______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

