News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

IBM developerWorks:
Using Service Data Objects to construct XML
November 25, 2005 @ 06:55:11

On the IBM developerWorks blog today, there's this quick post with a simple example of how to use the SDO library to extract info from an XML document.

At last month's Zend Conference I was fortunate enough to attend Christian Wenz's tutorial on XML and Web services. This covered the use of technologies such as DOM and SimpleXML for working with XML data. As the title of this blog entry suggests, SDO provide a simple way to construct or extend XML documents.

The example below shows an XML schema used by an application which records information regarding quotations people have made. An XML document following this schema will contain a quotes element containing a number of quote elements, each of which consists of a phrase and an author element and a year attribute.

The code given is less than ten lines long, and is even shorter (by six lines) than a DOM method for doing the same thing - besides being more inuitive...

0 comments voice your opinion now!
ibm developer sdo service data objects xml ibm developer sdo service data objects xml


blog comments powered by Disqus

Similar Posts

Pádraic Brady: PHP Security: Default Vulnerabilities, Security Omissions & Framing Programmer

Job Posting: Company Seeking Web Developer (Flexible Location/ Boulder, CO)

Fabien Potencier's Blog: Getting information from SVN with PHP

Job Posting: Unborn Media Inc Seeks PHP/MySQL Developer (Boston, MA)

Job Posting: Assembleron Ltd Seeks PHP 5/MySQL/Ajax Developers (Reading, UK)


Community Events





Don't see your event here?
Let us know!


list wordpress refactor threedevsandamaybe interview developer unittest introduction podcast opinion series testing laravel install community language code api release framework

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework