|
|
XML and Java
Java » Tips and Tutorials » XML and Java
A D V E R T I S E M E N T
Want free Oracle Magazine? Apply here now!
Swing Dev with TableModel Free frameworkThis article introduces the TableModel Free (TMF) framework which eliminates the need to use TableModels with Swing JTables. The TMF framework allows for more configurable JTables by moving all of table-specific data outside of the compiled code and into a configurable XML file. Framework developer and Java UI enthusiast Michael Abernethy walks you through TMF framework, helping you reduce the size of a TableModel from hundreds of lines of code to just a single line, making management a snap. XmlEncode - FreewareThis is a simple function used to encode text and attribute values before adding them to your XML documents. This code can always be extended to handle maore special characters
XML Programming in Java TutorialThis advanced tutorial covers more sophisticated topics for manipulating XML documents with Java technology. Author Doug Tidwell shows you how to do tasks such as generate XML data structures, manipulate those structures, and interface XML parsers with non-XML data sources. As you'd expect, all of the examples are based on open standards. Tip: Set up SAX ParsersThis is the first in a series of tips that will serve as a comprehensive guide to using XML from the Java programming language. I begin with coverage of the SAX API. This tipreviews getting an instance of a SAX parser and setting various features and properties on that parser. Parsing XML using Apache DigesterThis is a quick start guide to using the Apache Digester framework for parsing XML files to generate Java Objects.
Digester is a SAX based XML framework which parses XML and by using the patterns defined in your document and object mappings, convert the XML into Objects. Declarative programming of JSP web sites using XML.In any JSP based web site, there could be lots of repetitive web pages. By using tag libraries and XML based definition files, this can be generalized into a framework based rendering. This article illustrates such usage to render a web site. XML generation with JAVAXML developers used to rely on XML parsers to read XML files. They also used to rely on XML processors to transform XML to *ML (HTML, XML, etc.). However, most of them forget these tools to generate XML from scratch. They should not. This article presents code samples for generating XML with JAVA/JAXP. Long-term persistence: Serialize JavaBean component state to XMLThe ability to save the JavaBean component state for long-term persistence within an XML document has been a topic of much discussion with Java developers in the past few years. This feature has finally been adopted in the 1.4 version of J2SE. This article shows you how to use the new XMLEncoder and XMLDecoder classes, bypassing serialization and allowing you to generate fully initialized bean instances. Proofing Web applications for performance and scalabilityTesting for performance and scalability using a combination of XML and Java technologies is essential in the fast-paced world of Web-application development. This article outlines a conceptual framework for building Web software, explains why the combination of Java objects and an XML-based scripting language works well for testing, offers such practical Web-software test methods as state and boundary testing, and introduces an open-source set of tools and a scripting language called Load to help with your testing.
|
A D V E R T I S E M E N T
|
Subscribe to SourceCodesWorld - Techies Talk |
| |
|