Hello, I have to implement the Data Graph in Java from an XML document. For example, having the following document:
<movie> <title> Hello </ title> <actors> <actor> Brad Pitt </ actor> <actor> George Clooney </ actor> </actors> </movie> we must build an internal representation of the document in the form of a graph, where elements are represented as nodes and links between elements such as arches. Then I have to navigate through the graph to process the data. I wanted to understand what are the most efficient structures for the representation of a graph, ie Hashtable, matrices, etc. ... In addition, you have to give me some suggestions on how I can use the sax parser to construct the structure graph?