background preloader

XML

Facebook Twitter

XML and Java technology: XML persistence in three flavors. You have to store your XML somewhere XML is a great data format—as evidenced by, among other things, an entire zone of IBM developerWorks that is dedicated to the subject. And more often that not in 2007, talking about XML means talking about Web services, or converting between XML and Java™ objects, or perhaps reading an XML configuration file, or even using an XML-formatted database format instead of a relational or an object-oriented one. One thing that you won't hear talked about much these days is how XML gets from whatever in-memory representation you use—DOM, JDOM, or what have you—into static files, filled with angle brackets and quotation marks. Frankly, taking XML and writing it to a file just isn't very exciting—but it is necessary. Obviously, actually writing out XML is pretty important. So the question is simple: how are you persisting your XML to a file?

Back to top Using APIs directly You can do something similar in DOM Level 3 using the new Load and Save API: What's good.

Xsd

XML Namespaces. James Clark <jjc@jclark.com> The XML Namespaces Recommendation seems to be causing a great deal of confusion. This note attempts an alternative explanation of the mechanism described in the Recommendation which I hope will be less confusing. In the data model implied by XML, an XML document contains a tree of elements. Each element has an element type name (sometimes called the tag name) and a set of attributes; each attribute consists of a name and a value. The XML Namespaces Recommendation tries to improve this situation by extending the data model to allow element type names and attribute names to be qualified with a URI. Documents using this extended data model can be written by extending the XML syntax to allow universal names written as a URI in curly brackets followed by the local name. Would specify an element whose element type name is a universal name with local name part and URI maps to Note that the xmlns:cars attribute has been removed by the mapping.

Dita

Updated: XML Has Too Many Architecture Astronauts. Joel Spolsky has an seminal article entitled Don't Let Architecture Astronauts Scare You where he wrote A recent example illustrates this. Your typical architecture astronaut will take a fact like "Napster is a peer-to-peer service for downloading music" and ignore everything but the architecture, thinking it's interesting because it's peer to peer, completely missing the point that it's interesting because you can type the name of a song and listen to it right away.All they'll talk about is peer-to-peer this, that, and the other thing.

Suddenly you have peer-to-peer conferences, peer-to-peer venture capital funds, and even peer-to-peer backlash with the imbecile business journalists dripping with glee as they copy each other's stories: "Peer To Peer: Dead! " The Architecture Astronauts will say things like: "Can you imagine a program like Napster where you can download anything, not just songs? " If you're too busy to read them, here's the executive summary. Asynchronous JavaScript Technology and XML (AJAX) With Java 2. Oracle Technology Network > Java Software Downloads View All Downloads Top Downloads New Downloads What's New Java in the Cloud: Rapidly develop and deploy Java business applications in the cloud.

Start for free. Essential Links Developer Spotlight Java EE—the Most Lightweight Enterprise Framework? Blogs Technologies Contact Us About Oracle Cloud Events Top Actions News Key Topics Oracle Integrated Cloud Applications & Platform Services.