Using XML comfortably among objects
By Milan Trninić, JavaWorld.com, 09/05/05
XML's emergence did not initially make our lives easier—at best, they did not change much. We quickly started writing our many data formats using angle brackets, which looked neat, but did not make much of a difference. But, over the years, many new XML-based specifications with disparate and often unique grammars have surfaced. How these grammars, and XML in general, fit into the world of object-oriented technology, at first, did not seem completely clear.
Essentially, we have one more model-mapping problem on our hands. This article looks at XML from the model perspective and tries to answer questions like: What is the model of XML? Does it have one at all? How do we use it while preserving the benefits of object-oriented programming and/or other models (such as relational or entity-relationship). Do the object-oriented model and the XML model fit well together?
To help answer these questions, a few example model rules from Geography Markup Language (GML) are described.
Read the article on their website: JavaWorld .
Download the PDF file: OO, XML, and GML: Are angle brackets a flexible modeling material?