Gå til innhold

Hente elementer fra streng og lagre til array


Anbefalte innlegg

Hei,

 

Har ikke noe tidligere erfaring fra vb.net, men da jeg trenger en plugin til et program og denne ikke finnes...

Jeg vil hente albuminfo fra www.discogs.com og hente ut genre og style. Så langt har jeg laget et enkelt skjema som kan søke opp artist/release og lagre disse til en streng. Hvordan kan jeg sortere ut den infoen jeg vil ha og lagre denne til et array? Feltene jeg trenger er: release id, title, format, label og year.

 

Eksempel på streng.

 

<resp stat="ok" version="1.0" requests="18">

<artist>

<images>

<image height="388" type="secondary" uri="http://www.discogs.com/image/A-301303-1127858823.jpeg" uri150="http://www.discogs.com/image/A-150-301303-1127858823.jpeg" width="400"/>

</images>

<name>

Alana Davis

</name>

<urls>

<url>

http://www.AlanaDavis.com

</url>

<url>

http://www.MySpace.com/alanadavis

</url>

<url>

http://en.wikipedia.org/wiki/Alana_Davis

</url>

<url/>

</urls>

<releases>

<release id="528084" status="Accepted" type="Main">

<title>

Blame It On Me

</title>

<format>

CD

</format>

<label>

Elektra

</label>

<year>

1997

</year>

</release>

<release id="1920577" status="Accepted" type="Main">

<title>

Blame It On Me

</title>

<format>

CD

</format>

<label>

Elektra

</label>

<year>

1997

</year>

</release>

<release id="528087" status="Accepted" type="Main">

<title>

Fortune Cookies

</title>

<format>

CD, Album, Promo

</format>

<label>

Elektra

</label>

<year>

2001

</year>

</release>

<release id="1658130" status="Accepted" type="Main">

<title>

Fortune Cookies

</title>

<format>

CD, Album

</format>

<label>

Elektra, Warner Music (Canada)

</label>

<year>

2001

</year>

</release>

<release id="862892" status="Accepted" type="Main">

<title>

Surrender Dorothy

</title>

<format>

CD, Album

</format>

<label>

Tigress Records, Telarc

</label>

<year>

2005

</year>

</release>

<release id="1127447" status="Accepted" type="Appearance">

<title>

Radio RAM Presents - Chillout In Black

</title>

<trackinfo>

Blame It On Me

</trackinfo>

<format>

CD, Comp, Dig

</format>

<label>

Universal Music Polska

</label>

<year>

2007

</year>

</release>

<release id="1437824" status="Accepted" type="TrackAppearance">

<title>

Elektra's Fallbreakers Sampler

</title>

<trackinfo>

32 Flavors

</trackinfo>

<format>

CD, Comp, Promo, Smplr

</format>

<label>

Elektra, EastWest

</label>

<year>

1997

</year>

</release>

<release id="1769155" status="Accepted" type="TrackAppearance">

<title>

Promo Only Radio Series: October 97

</title>

<trackinfo>

32 Flavors

</trackinfo>

<format>

CD, Comp, Promo

</format>

<label>

Promo Only

</label>

<year>

1997

</year>

</release>

<release id="1276119" status="Accepted" type="TrackAppearance">

<title>

CD Promocional Anglo 03 - 1999

</title>

<trackinfo>

Can't Find My Way Home

</trackinfo>

<format>

CD, Comp, Promo

</format>

<label>

Warner Music (Chile)

</label>

<year>

1999

</year>

</release>

<release id="397936" status="Accepted" type="TrackAppearance">

<title>

The Mod Squad (Soundtrack)

</title>

<trackinfo>

Can't Find My Way Home

</trackinfo>

<format>

CD

</format>

<label>

Elektra

</label>

<year>

1999

</year>

</release>

<release id="1127447" status="Accepted" type="TrackAppearance">

<title>

Radio RAM Presents - Chillout In Black

</title>

<trackinfo>

Blame It On Me

</trackinfo>

<format>

CD, Comp, Dig

</format>

<label>

Universal Music Polska

</label>

<year>

2007

</year>

</release>

</releases>

</artist>

</resp>

 

Lenke til kommentar
Videoannonse
Annonse

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...