Apple Grinder
Apple Grinder

Reputation: 3583

What is an object tree - XML Parsing?

I am reading a tutorial on XML parsing with Java - http://www.vogella.com/articles/JavaXML/article.html

He says "In DOM your access the XML document over an object tree". I guess its some kind of Data Structure and searched google for 'object tree data structure' but did not find any such DS.

Is object tree the same as tree DS or is it not even a DS ?

Upvotes: 0

Views: 1886

Answers (1)

Chamila Chulatunga
Chamila Chulatunga

Reputation: 4914

An object tree is a tree data structure holding objects at the nodes. In the specific case being referred to here, the DOM (document object model) is a tree structure representing the XML that is being accessed. Each node in the DOM tree will correspond to an XML node.

Wikipedia entry: http://en.wikipedia.org/wiki/Document_Object_Model

W3C: http://www.w3.org/DOM/

Upvotes: 1

Related Questions