Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: SAX or DOM, graph proccesing

From: =?ISO-8859-1?Q?J=FCrgen_Kahrs?= <Juergen.KahrsDELETETHIS@------.-->
To: NULL
Date: 11/2/2006 7:39:00 PM

Sebastian.Pawlus@g... wrote:

> But is something that I didn't tell before that every loaded graph
> structure I need to check couple of algorithms like "Connectivity"

You should have a look at XMLgawk:

  http://home.vrweb.de/~juergen.kahrs/gawk/XML/xmlgawk.html

This is a script language that processes XML data
in a SAX-like way. Node-by-node is read and you
can use AWK's associative arrays to check connectivity.

> I should use DOM model and load whole file at one time and after that
> try to build structure? But again I know that DOM model eat a lot of
> memory.

It depends on the expected size of your graphs.
If the XML data is only some mega bytes in size,
then the DOM API may be more convenient. Especially
if you have to traverse the graph more than once.

> After the parser will load file, the point is to redraw whole structure
> and the next question is.
> I should use SAX second time or draw in parallel model?. But if graph
> don't pass one of algorithms drawing is for nothing.

Some time ago, I wrote a script that converts the
tree structure of XML data into a drawing. Maybe
this example is useful:

http://home.vrweb.de/~juergen.kahrs/gawk/XML/xmlgawk.html#Converting-XML-data-into-tree-drawings


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent