This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
The book that I am using to learn XML states a few times that every XML document with an external DTD or schema must have a preamble that points to the content model. However, I have seen a couple of XML documents that don't have a preamble. Is there another method of declaring the content model besides using a preamble? Also, does anyone know of an online tutorial I can use to figure out how to make use of XML document information within my Java program? Thanks, Richard
Richard, what your book means by �a preamble�? The closest official term I can think about is �prolog� = �XML declaration� + �DOCTYPE declaration�. Is it what the book mean? If XML document has a DTD (either external or internal), it has to be declared in <!DOCTYPE declaration But it is also possible for an XML document not to have any accotiated DTD or Schema � then it doesn�t have <!DOCTYPE declaration (= preamble?) Some ideas about Java&XML: Processing XML with Java XML, Java, databases and the Web Java XML Application Categories