Hi,
I have the below xml to display in a table format. I cannot change the structure of xml as it is provided by a third party. Is there any way to show this in a table format.
Thanks for your inquiry. In your case, we suggest you please import the XML into DataSet using DataSet.ReadXml method and create the table using following code example. Hope this helps you.
Thanks for the reply. But the issue is we are not interested to do any logic in Java.
We need to put everything in Word document itself. So I am looking for linq scripts for the same.
Thanks for your inquiry. Aspose.Words does not provide API to work with XML. You need to read the XML using Java code and write its content into table. The code shared in my previous post is C# example. Please read the following article about creating table using Aspose.Words for Java. Creating Tables
Thanks for your inquiry. As you shared that you cannot change the structure of XML. In this case, you need to read the XML using Java code and create the table using Aspose.Words. You may import the XML into com.aspose.words.net.System.Data.DataSet using DataSet.readXml method and use it to create the table.
Yes, you can use JavaBeans to create table. We suggest you please read the following article: