Access to www.w3.org DTDs blocked from Java

While parsing an XML file, I discovered that www.w3.org blocks requests to certain resources originating from the Java program, identified by the User-Agent. If your XML refers to w3.org DTDs, you might see an error like this: [java.io.IOException: Server returned HTTP response code: 500 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent].

This is a known issue. The URLs have been deliberately blocked by w3.org due to ‘abusive’ use by Java programs.

Maven Docbook for beginners

This articles helps you get started with your first Docbook based documentation for your Maven project in 5 minutes. It shows you how to setup pom.xml, write a sample docbook and generate HTML documentation. It also includes references to where you can learn how to write comprehensive Docbook files.

JAXB code snippets for beginners

JAXB is a Java library used for reading and writing XML files. Unlike DOM or SAX, JAXB is a high level library that maps XML directly to Java Objects. You point JAXB to an XML file and it returns you a Java object representing the XML. While JAXB is easy to use, it may take some time to get started. I’ve documented everything that you need to know, with code snippets, to help you start using JAXB in a few minutes.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes