• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML Document Preambles

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic