XML continues the separation of data from presentation, to the point that one XML stylesheet contains all the common HTML code and a separate CSS stylesheet contains the formatting code. The XML file itself only needs to contain the code that is specific to that page.
It is a feature of my software that I produce HTML output from XML documents with server-side XSL transformations. This means that as well as producing the XML document I transform it into HTML on the server before I send the result to the client.
This tutorial will explain how to parse (that is, read and interpret) information from a XML file using PHP. I will discuss the very basics of XML (mainly structure), and then jump right in to the reading and parsing of XML files. This is not a tutorial on XML itself, just parsing XML with PHP.
This is actually a piece of code used by me to access XML files through Java. I have added some explanation. In case you are interested in knowing how to access XML files using Java, quickly without reading a lot of material, this is the right article for you.
In this first tutorial of his series on using scripting languages to manipulate and transform XML documents, Binary Evolution’s Parand Tony Daruger takes you through the first steps of using these techniques with Perl. You’ll see a method for transforming XML to HTML, followed by a simple stock trading application that uses Perl, XML, and a database to evaluate trading rules. You can apply the techniques using other scripting languages too, including Tcl and Python.
Ask the expert: My assignment on an XML pilot project is a transformation from data formatted in comma-delimited files (CDF) that the customer wants to transform into XML data. Seems logical enough, but I can’t find any reference to a CDF-to-XML translator. What would you suggest? –Tom Watson, consultant
Doug Tidwell responds: Tom, I think I have a solution. It all starts with getting the data.
As more and more companies use XML to transmit structured data across the Web, the security of documents becomes increasingly important. This article presents some basics of Web security, describes the components of the XML Security Suite, and gives examples that illustrate how the technologies in the XML Security Suite increase the security of Web commerce.
Find out how Java servlets and XML work together to generate an XML document and DOM tree and interface with a database. This article includes a couple of useful techniques: using HTTP parameters to control processing and generating a DOM tree without an XML source document.
Apr 15, 2008 - 96 Comments
Aug 6, 2008 - 20 Comments
Mar 7, 2008 - 13 Comments
Oct 8, 2010 - 2 Comments
Oct 6, 2010 - 0 Comment
Sep 22, 2010 - 0 Comment