tags:

views:

67

answers:

5

Is there a way I can use Visual Studio to view my XML data in a tabular structure by applying the appropriate XSD to it?

Are there any other tools I can easily use for this purpose? PS: I need this for a one time use.

A: 

I'm not sure this answers your question, but I've had plenty of luck opening xml files in Firefox, copying and pasting the result into Notepad, and then importing the text file as a tab delimited file into Excel.

Probably an easier way to do that, but it works for me.

Thomas Langston
+1  A: 

There is an option for this in XMLSpy 2011. A fully functional, 30 day trial is available for download here.

Joe Stefanelli
+1  A: 

Excel has surprisingly good XML support.

It will even generate the XSD internally if needed.

Oded
How do you apply your custom schema in MS Excel?
Raj More
@Raj More - You can import XSDs to Excel (called a Map in Excel) - look for "import map excel"
Oded
You do what's called XML mapping...
code4life
+1  A: 

You can do this in SQL server quite easily using the FOR XML functionality.

A simple adaptation of the code from my answers to these questions would suffice:

Winston Smith
+1  A: 

Use Excel to view the XML document, as Oded mentioned.

If you're using Excel 2003, click on Data->XML->Import, and select the XML you'd like to view. Excel will ask you which cell to start the import from, and then populate the spreadsheet with the XML data.

code4life