Xtreme Visual Basic Talk

Xtreme Visual Basic Talk (http://www.xtremevbtalk.com/)
-   .NET Database and Reporting (http://www.xtremevbtalk.com/-net-database-and-reporting/)
-   -   (VS2005) Load an special XML File into a Datagridview (http://www.xtremevbtalk.com/-net-database-and-reporting/327640-vs2005-load-special-xml-file-datagridview.html)

polaco19 06-01-2015 01:22 PM

(VS2005) Load an special XML File into a Datagridview
 
I'm looking for a long time a solution for my problem with no results:

I have this kind of XML file:

Code:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Job xmlns="http://xxxx.com" CreationDate="2015-04-07T17:38:44" DocumentCount="1" Name="BarCodes_E">

  <Document Name="Doc001">
    <Data Format="Text" Name="ID01">Data 1</Data>
    <Data Format="Text" Name="ID02">Data 2</Data>
    <Data Format="Text" Name="ID03">Data 3</Data>
    <Data Format="Text" Name="ID04">Data 4</Data>
    <Data Format="Text" Name="ID05">Data 5</Data>
  </Document>
 
    <Document Name="Doc002">
    <Data Format="Text" Name="ID01">Data 1</Data>
    <Data Format="Text" Name="ID02">Data 2</Data>
    <Data Format="Text" Name="ID03">Data 3</Data>
    <Data Format="Text" Name="ID04">Data 4</Data>
    <Data Format="Text" Name="ID05">Data 5</Data>
  </Document>

    <Document Name="Doc003">
    <Data Format="Text" Name="ID01">Data 1</Data>
    <Data Format="Text" Name="ID02">Data 2</Data>
    <Data Format="Text" Name="ID03">Data 3</Data>
    <Data Format="Text" Name="ID04">Data 4</Data>
    <Data Format="Text" Name="ID05">Data 5</Data>
  </Document>
 
</Job>

And i need to load the data by rows into a Datagridview and then the selected rows export them into a new XML file, but the main problem is import the data.

The datagridviw should look like this:

|chckbox| Name | ID01 | ID02 | ID03 | ID04 | ID05 |
| ..OK.. |Doc001|Data 1|Data 2|Data 3|Data 4|Data 5|
| ..NO.. |Doc002|Data 1|Data 2|Data 3|Data 4|Data 5|
| ..OK.. |Doc003|Data 1|Data 2|Data 3|Data 4|Data 5|


All times are GMT -6. The time now is 05:27 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Optimisation provided by DragonByte SEO v2.0.15 (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
All site content is protected by the Digital Millenium Act of 1998. Copyright©2001-2011 MAS Media Inc. and Extreme Visual Basic Forum. All rights reserved.
You may not copy or reproduce any portion of this site without written consent.