Microsoft's counterpiece to Java, the new C# programming language with its
rich .NET library, uses XML as a core technology. This article presents some
basic ideas, for example creating and manipulating a DOM tree, and reading
and writing XML streams.
I also compare .NET's solution with the SAX model, and finally I show how a
complex XSLT algorithm can be more simply implemented in C#. The source code
can be downloaded from and www.sys-con.com/xml/sourcec.cfm.
XML Processors
To process an XML document means to extract information from it. Often the
extracted information should be output to a new XML (or perhaps HTML)
document that's similar to the original one - then we address the
transformation.
Which processor to use for a given task is not a trivial question. There are
a number of ready-to-use XML processors on the market - like Cocoon and Axkit
- and any XML-e... (more)
Aggregation in XML is not trivial. Altova's XMLSPY offers a number of
features facilitating this process. This article presents an example,
including best practices and practical programming techniques - especially
useful for those who don't like typing a lot of angle brackets.
Aggregation of XML (or HTML) documents means to collect the content of
several XML files in one XML (or HTML) document (see Figure 1).
A portal product, for example, would aggregate the content of several data
sources into one HTML page and present their contents in boxes in the user's
browser. Most portal... (more)