File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Effective XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Effective XML" Watch "Effective XML" New topic

Effective XML

Juan Med�n

Joined: Sep 22, 2003
Posts: 4
Well, it's hard not to remember the great C++ with the same title
Where can I get a content table for the book ? It's only focused at XML, or does it cover all the XML famility (and specially XSLT) ?
Best regards,
- Juan
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
From Cafe con Leche or from the publisher's website. Or from searching today's posts in this forum.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Elliotte Rusty Harold
Ranch Hand

Joined: Feb 25, 2004
Posts: 91
  • Include an XML declaration
  • Markup with ASCII if possible
  • Stay with XML
  • 0
  • Use standard entity references
  • Comment DTDs liberally
  • Name elements with camel case
  • Parameterize DTDs
  • Modularize DTDs
  • Distinguish text from markup
  • White space matters
  • Make structure explicit through markup
  • Store metadata in attributes
  • Remember mixed content
  • Allow all XML syntax
  • Build on top of structures, not syntax
  • Prefer URLs to unparsed entities and notations
  • Use processing instructions for process-specific content
  • Include all information in instance documents
  • Encode binary data using quoted printable and/or Base64
  • Use namespaces for modularity and extensibility
  • Rely on namespace URIs, not prefixes
  • Don't use namespace prefixes in element content and attribute values
  • Reuse XHTML for generic narrative content
  • Choose the right schema language for the job
  • Pretend there's no such thing as the PSVI
  • Version documents, schemas, and stylesheets
  • Markup according to meaning
  • Use only what you need
  • Always use a parser
  • Layer Functionality
  • Program to standard APIs
  • Choose SAX for computer efficiency
  • Choose DOM for standards support
  • Read the complete DTD
  • Navigate with XPath
  • Serialize XML with XML
  • Validate inside your program with schemas
  • Write documents in Unicode
  • Parameterize XSLT style sheets
  • Avoid Vendor Lockin
  • Hang on to your relational database
  • Document Namespaces with RDDL
  • Preprocess XSLT on the server side
  • Serve XML+CSS to the client
  • Pick the correct MIME media type
  • Tidy Up Your HTML
  • Catalog common resources
  • Verify documents with XML digital signatures
  • Hide confidential data with XML encryption
  • Compress if space is a problem

  • Elliotte Rusty Harold<br />Author of <a href="" target="_blank" rel="nofollow">Refactoring HTML</a>
    Ko Ko Naing
    Ranch Hand

    Joined: Jun 08, 2002
    Posts: 3178
    Originally posted by Juan Med�n:
    It's only focused at XML, or does it cover all the XML famility (and specially XSLT) ?

    Yes, it covers all the XML-related stuff there in the book... here is what I extracted from the one of the reviews at Amazon about the book...

    There are plenty of generic XML books out there, plus a bunch of titles that focus on specific XML applications or XML related topics (SOAP, XSLT, XML Schema etc); what Mr Harold delivered this time is something different, that really stands out from everything else available at the time of this writing. This book is about best practices, patterns and anti-patterns, and about how to use XML correctly and efficiently. As with other titles from the same author, this book is a pleasure to read, clean, informative and well structured. In my opinion a must have for the serious XML practitioner. Be advised this is not a book for beginners, the author takes for granted you already mastered the fundamentals of XML and many related technologies like DTD, Schema or Namespace. In order to really get the best out of it you better have some experience using XML under your belt.

    Here is the link to Amazon's Effective XML page. You might want to have a look at some other reviews...

    Co-author of SCMAD Exam Guide, Author of JMADPlus
    SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
    I agree. Here's the link:
    subject: Effective XML
    jQuery in Action, 3rd edition