Jump to content
Windows Dragon

XML Reader

Recommended Posts

Windows Dragon

Boas... Estive ha procura no google como ler ficheiros XML mas a unica coisa que encontrei foi para ler settings...

Mas não é o que eu quero :S

Aqui está o que eu quero

Tenho este ficheiro XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jdownloader>
<package package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="94.41 MB" package_name="2007 - Rage - Full Moon In St. Petersburg  (320)" package_percent="100,00" package_size="94.41 MB" package_speed="0 B" package_todo="0 B"/>
<package package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="56.64 MB" package_name="Rage - Gib Dich Nie Auf (EP)" package_percent="100,00" package_size="56.64 MB" package_speed="0 B" package_todo="0 B"/>
<package package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="43.38 MB" package_name="Rage - 2008.Carved in Stone" package_percent="100,00" package_size="43.38 MB" package_speed="0 B" package_todo="0 B"/>
<package package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="42.97 MB" package_name="Optical Flares 1.0.108 Cracked" package_percent="100,00" package_size="42.97 MB" package_speed="0 B" package_todo="0 B"/>
<package package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="346.89 MB" package_name="s15-[pdclinks.net]" package_percent="100,00" package_size="346.89 MB" package_speed="0 B" package_todo="0 B"/>
<package package_ETA="~" package_linksinprogress="0" package_linkstotal="1" package_loaded="19.41 KB" package_name="Supernatural.2005-www.LegendasDivx.com" package_percent="100,00" package_size="19.41 KB" package_speed="0 B" package_todo="0 B"/>
<package package_ETA="~" package_linksinprogress="0" package_linkstotal="8" package_loaded="4.00 GB" package_name="Crysis 2" package_percent="55,16" package_size="7.24 GB" package_speed="0 B" package_todo="3.25 GB"/>
</jdownloader>

(Tendo em conta que o numero de linhas vai mudando consoante o nº de pacotes no jdownloader...)

como é que eu posso extrair dados como por exemplo: "package_ETA" e "package_loaded" para uma data grid view??

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.