Microsoft
Software
Hardware
Network
Question : Generating XML tree structure from XMLdata file in java
Hello
I am a new beginner for using XML in java. I am currerntly stuck in a problem where I am trying to implement a logic which will will automatically figure out all the relations between each nodes in an given XML file using Java
So basically when I parse the XML file, the output should be the XML tree structure telling me how each node is linked to each other.
Is there any way this is possible to be implemented.
So far I can get the all the elements in the file but cant determine which one is linked to which one.
The purpose of this is to use this strucuture to create another file in a particular format. But I need this relations before I can implement them.
Any help would be much appreciated. If you have any further questions please dont hesistate to contact me back.
Answer : Generating XML tree structure from XMLdata file in java
Once you have your XML parsed DOM build, you already have your tree model built.
To navigate across the tree you can use TreeWalker as here
http://www.java-tips.org/j
ava-se-tip
s/org.w3c.
dom/how-to
-
traverse-
the-dom-tr
ee-using-t
reewalker-
2.html
Random Solutions
MISC HP 512MB P-SERIES BBWC UPGRADE - 462967-B21
How to store a path in EditBox1.Text via DialogBox control?
Group Policy Home Page.
Regarding SQL meta data cleanup in Microsoft SQL Server
How do I express this in code?
How can I find out what type of driver I need for a "other device, Unknown Device" for a nc6400 laptop
PHP.ini file 'display_errors' is set to Off but errors still appear on page?
How can I determine from an Office 2010 Volume License key (or product activation key) exactly which version of Office 2010 to download & install from MSDN (msdn.microsoft.com)?
How do I add a Folder to Windows Installer without having to add each individual file
Unattended Windows 7 Installation answer file not working