SgDotNet
Singapore Professional .NET User Group -For Cool Developers

XML in datagrid

rated by 0 users
This post has 3 Replies | 1 Follower

Top 100 Contributor
Posts 20
forlorn Posted: 09-05-2005 11:17 AM

Hi i'm kinda newbie here, how do I get the xml file below to nicely display in a datagrid?

<?xml version="1.0" encoding="utf-8" ?>

- <wsi-monConfig:configuration xmlns:wsi-monConfig="http://www.ws-i.org/testing/2003/03/monitorConfig/">
  <wsi-monConfig:comment>This is a sample mnitor config file</wsi-monConfig:comment>
- <wsi-monConfig:logFile replace="true" location="traceLog.xml">
  <wsi-monConfig:addStyleSheet href="..\..\common\xsl\log.xsl" type="text/xsl" alternate="false" />
  </wsi-monConfig:logFile>
  <wsi-monConfig:logDuration>3600</wsi-monConfig:logDuration>
  <wsi-monConfig:cleanupTimeoutSeconds>1</wsi-monConfig:cleanupTimeoutSeconds>
- <wsi-monConfig:manInTheMiddle>
- <wsi-monConfig:redirect>
  <wsi-monConfig:comment>This redirects to a local machine</wsi-monConfig:comment>
  <wsi-monConfig:listenPort>9090</wsi-monConfig:listenPort>
  <wsi-monConfig:schemeAndHostPort>http://localhost:80</wsi-monConfig:schemeAndHostPort>
  <wsi-monConfig:maxConnections>1000</wsi-monConfig:maxConnections>
  <wsi-monConfig:readTimeoutSeconds>30</wsi-monConfig:readTimeoutSeconds>
  </wsi-monConfig:redirect>
- <wsi-monConfig:redirect>
  <wsi-monConfig:comment>This redirects to another machine</wsi-monConfig:comment>
  <wsi-monConfig:listenPort>8080</wsi-monConfig:listenPort>
  <wsi-monConfig:schemeAndHostPort>http://172.17.168.112:80</wsi-monConfig:schemeAndHostPort>
  <wsi-monConfig:maxConnections>1000</wsi-monConfig:maxConnections>
  <wsi-monConfig:readTimeoutSeconds>30</wsi-monConfig:readTimeoutSeconds>
  </wsi-monConfig:redirect>
  </wsi-monConfig:manInTheMiddle>
  </wsi-monConfig:configuration>
Top 50 Contributor
Posts 94
Stuff it into a datasource and link the grid to the datasource. Some trial and error will get you there.
:-) stw

If you think education is expensive - try ignorance!
Top 100 Contributor
Posts 20
thanks for the reply. But i would appreciate if ya could offer more detailed explanations on how to go about doing it.
Top 50 Contributor
Posts 94
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/Cpqstart/html/cpsmpnetsamples-howtoxmldata.htm#cpsmpLoadDataSetXMLDataSample

Please try what is provided with Visual Studio first. Question credit might run out.
;-) stw

If you think education is expensive - try ignorance!
Page 1 of 1 (4 items) | RSS
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems