dcsimg
Linux Today: Linux News On Internet Time.




More on LinuxToday


zez.org: Parsing XML with Qts DOM classes

Dec 10, 2000, 12:32 (0 Talkback[s])
(Other stories by Gunnstein Lye)

WEBINAR:
On-Demand

Re-Imagining Linux Platforms to Meet the Needs of Cloud Service Providers


[ Thanks to Gunnstein Lye for this link. ]

"The Document Object Model (DOM) by the World Wide Web Consortium specifies a simple way of interacting with various document formats, including XML. Trolltech's Qt implements some very handy DOM classes. In this tutorial I'll demonstrate the basic principles of DOM, and give some pointers on how to use the Qt DOM classes."

"The Document Object Model (DOM) by the World Wide Web Consortium is an object-oriented approach to document handling. It breaks up the document into a tree of nodes, each node with a set of attributes. We start with a simple xml document..."

"The node named "xml" is the first node of the document and is called the document element. The nodes "smith" and "throckmorton" are children of "xml". "xml" is the parent of "smith" and "throckmorton". And, logically, "smith" and "throckmorton" are siblings. Using this concept, we can navigate the document as follows..."

Complete Story

Related Stories: