title: Convert XML document to an Excel Sheet programmatically through Java
body: <p>I have an XML Document and I need to convert it into an Excel Sheet so that the data is more presentable and also I would be able to add Macros to it.</p>
  
  <p>The XML Document is pretty complex and it is actually a Java Application Object that has been converted to XML using XStream.</p>
  
  <p>I need to do the parsing dynamically wherein the tags should be the column name and the attributes should be column value.</p>
  
  <p>It would be of great help if someone could suggest how should I go about it ?</p>
  
  <p>I have tried using Apache POI but I am not being able to pick the XML Elements dynamically and iterating one by one and picking the values based on tag names would not solve my purpose as the XML Structure of the Document would keep changing.</p>
  
  <p>Thanks in advance.</p>