XML and Minimal Directed Acyclic Graph Encoding

A

Altu

Hi,

If I model an XML document as a DAG in memory, how can I implement the
getParent operation on a node?

Regards,
Al
 
J

Joseph Kesselman

Altu said:
If I model an XML document as a DAG in memory, how can I implement the
getParent operation on a node?

Maintain a context stack as you navigate through the document?
 
D

Dimitre Novatchev

Altu said:
Hi,

If I model an XML document as a DAG in memory, how can I implement the
getParent operation on a node?


Here:

http://lists.xml.org/archives/xml-dev/200401/msg00444.html

is an efficient representation of a graph as an xml document. The referenced
xml-dev posting also contains an algorithm for finding all routes from one
to another given nodes in the graph, and an efficient XSLT implementation of
this algorithm.


Cheers,
Dimitre Novatchev
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top