Display XML Data
-
I am trying to display XML with the XML server side control. I am not using an XSLT and the documentation says that the control should display the raw XML if a XSLT is not provided but it isn't. Is there something special that I have to do to get it to display the xml or a special format I need to get it to display because when I have a chunk of xml that has a tag in it then everything within that tage is displayed but not formatted in any readable way. The xml is generated at runtime based on the deserialization of different binary objects so it is hard to create any sort of XSLT that could be used unless someone knows of a generic XSLT that I can use just to display the data since I am not that familiar with XSLT.
-
I am trying to display XML with the XML server side control. I am not using an XSLT and the documentation says that the control should display the raw XML if a XSLT is not provided but it isn't. Is there something special that I have to do to get it to display the xml or a special format I need to get it to display because when I have a chunk of xml that has a tag in it then everything within that tage is displayed but not formatted in any readable way. The xml is generated at runtime based on the deserialization of different binary objects so it is hard to create any sort of XSLT that could be used unless someone knows of a generic XSLT that I can use just to display the data since I am not that familiar with XSLT.
I imported the XML file[webclass4.xml] to my project using AddItems. Place a xml control and a button To the click event of the button add [modify for your file name] Xml1.DocumentSource = "webclass4.xml" This will display the baebones text in your file well formatted as shown here:[ my layout scheme for this page did not conform to GridLayout] ------------------------- Students enrolled for the ECommerce Web Programming ClassLinda HalperinAdamDavisCharles RuggerioAdam DavisAdam DavisCharles ThayerCharles ThayerCharles ThayerVisual Basic 4.0Yes, Certified1989 Worked for a number of years: 3 years at Yahoo 1 year at Microsoft 10 years at Intel Visual Basic 5.0No,Not Certified Worked for a number of years: 2 years at brainbench.com 1 year at Hothead.com Visual Basic 5.0Yes, Certified1990 Worked for a number of years: 4 years at Butler 1 year at Technik 10 years at IBM Visual Basic 6.0Yes, Certified1990 Worked for a number of years: 8 years at Cisco 1 year at AmEx 4 years at Siebel