The Wide World Of XML
Instead of just one topic today, we thought we would bring you a small sampling of XML topics to sample at your leisure.
Let’s just kick right into it. XML as a document, well, it’s a little boring to read according to Ben Hirsch, who writes at Shadow-Fox.net. He has made a few tutorials available, including one on styling XML with XSLT.
He explained that the XSLT document would be linked from the XML document. The XSLT transforms the content of the XML with the defined stylesheet. The process is not much different than using CSS with HTML, other than the XML syntax.
From that introductory look at styling with XML, we jump into something a little murkier. Respected authors Rogers Cadenhead and Laura Lemay wrote SAMS Teach Yourself Java 2 in 21 Days, and covered the topic of “Using XML in a Java Context (4th ed).”
Their sample application, Domains, demonstrates how one creates a XML document, and takes the Java programmer through the steps involved in modifying and formatting it. Then they present the XML object model created there for evaluation.
“In many ways Extensible Markup Language is the data equivalent of the Java language,” the authors wrote in summary. “By using a class library such as the open source XML Object Model (XOM) library, you can easily create and retrieve data from an XML file.”
The creators of the Stylus Studio XML Editor have issued a “XML Developer’s Declaration of Independence” and a “Bill of Rights” for XML Developers. Though they are very verbose approaches to getting developers to try out the editor, they are cleverly written and hyperlinked to other Stylus Studio information pages.
David Utter is a staff writer for WebProNews covering technology and business.