(Leonard Anghel) This tip shows you how to bulid an entity resolver to “change” a public indentifier into a system identifier. The idea is to override the resolveEntity method of the EntityResolver interface:
Tag: JSON / JAVA / XML
Generating Atom Feed from SQL Data
(Ivan Pepelnjak) Atom technology (not the one discussed by nuclear physicists) was created in 2003 to address the shortcomings of the then-prevalent RDF Site Summary (RSS; also known as Really Simple Syndication) family of incompatible formats. It gained widespread adoption when Google decided to us
Automatic form layouts with the TreeView
(Pavan Podila) Over the past couple of days I have been working on an application that automatically generates a Form layout from an XML file. The XML file represents a form with a bunch of parameters. The form can also contain parameter groups, which can encapsulate a set of parameters.
Planning a Semantic Web site
(Rob Crowther) The Semantic Web brings with it the opportunities for users to get smarter search results, and for site owners to get more targeted traffic as users find what they really want. But these benefits don’t just magically appear. This article leads you through the aspects of both informati
Parse XML with the StAX Java API
(Peter Mikhalenko) Streaming API for XML (StAX) is an API that allows you to read and write XML documents in Java. StAX is a parser independent, pure Java API based on interfaces that can be implemented by multiple parsers.
How XQuery extends XPath
(Donnie Cameron) XPath and XQuery are similar in some ways. XPath is even an integral part of XQuery. Both languages allow you to select bits of data from an XML document or an XML document store. In this article, you’ll find descriptions of XPath and XQuery, and learn how XQuery extends XPath.
Accessing Attributes and Cloning Nodes with the DOM XML Extension in PHP 5
(Alejandro Gervasio) You’ve probably realized that the DOM XML library can be pretty useful when working with web documents. However, this extension includes some other methods, which can be utilized to parse attributes of a given XML string, as well as to clone nodes. Thus, considering that you may
Windows Presentation Foundation: FlowDocuments (Part 1)
(Ged Mead) For some reason, I thought that this was going to be an easy area to work with. You know – open up some kind of built-in reader control, stuff a load of content from a Word document, HTML or RTF file or whatever into it and magically WPF would know how to display it. With all the zoom, […]
Modularization of XHTML
(Jennifer Kyrnin) On 10 April 2001, the W3C released the modularization of XHTML as a recommendation. This will allow XHTML to reach a wider audience and more platforms. Soon, you may see XHTML on things like your cell phone or television.
Generating HTML excerpts
(Oleg Tkachenko) Here is another interesting problem: how do you generate HTML excerpts preserving HTML structure and style? Say you have long XHTML text:
