computer






 

Question by  tuppyqueen (311)

How can I convert XML to a table in Java?

I know nothing about computers!

 
+6

Answer by  trigonometry (668)

You will need some basic Java programming skills for this. Consider using output formats such as HTML or grahical user interfaces based on Swing. Finally for handling XML data there are some standard techniques like SAX or DOM parsing. Well established framework that come with good documentation are the Apache Xerces and Xalan toolkit.

 
+5

Answer by  gigo (1706)

I hope, that you mean Java and not Java Script - use the import libraries for xml parsing and transformation.

 
+5

Answer by  Ultimate (399)

The process of converting XML into a table using Java is tedious work to do manually, I suggest using JAXP this process will make is much easier for you.

 
+5

Answer by  Miriam94 (27)

first of all, you need to parse the XML file using either way DOM or SAX. As DOM is considered to be faster that SAX after running the parser for the first time. After parsing the XML file, it would be save in the memory in a form of a tree. Then you can use this tree to create table

 
You have 50 words left!