Einzelnen Beitrag anzeigen

bonsai

Registriert seit: 5. Dez 2005
5 Beiträge
 
Delphi 7 Professional
 
#3

Re: leere tags und openxml / xdom

  Alt 5. Dez 2005, 14:35
also, mal als beispiel: folgende xhtml-datei:

Delphi-Quellcode:
<html><head><title>椎名林檎 - Tadashii machi - LastFMProxy v1.0.3</title>
<link rel="shortcut icon" href="/data/favicon.ico" />
<link rel="icon" href="/data/favicon.ico" />
<link rel="icon" type="image/png" href="/data/nice_favicon.png" />
<link rel="stylesheet" type="text/css" media="screen" href="data/simple.css" />
</head><body>
<div id="version">[url="http://vidar.gimp.org/lastfmproxy/"]LastFMProxy v1.0.3[/url] - 2005 Vidar Madsen</div>
<div id="station">Global Tag Radio: japanese female vocalists</div>
<div id="lasttracks">[b]Last tracks played:[/b]<ul>[*][url="http://www.last.fm/music/Pizzicato+Five/_/Trailer+Music"]Pizzicato Five - Trailer Music[/url][*][url="http://www.last.fm/music/GO%21GO%217188/_/%E3%82%B8%E3%82%A7%E3%83%83%E3%83%88%E3%81%AB%E3%82%93%E3%81%A2%E3%82%93"]GO!GO!7188 - ジェットにんぢん[/url][*][url="http://www.last.fm/music/Crystal+Kay/_/%E3%83%80%E3%83%BC%E3%83%AA%E3%83%B3+P.P.P."]Crystal Kay - ダーリン P.P.P.[/url][*][url="http://www.last.fm/music/%E5%9D%82%E6%9C%AC%E7%9C%9F%E7%B6%BE/_/Aoi+hitomi+%28remix%29"]坂本真綾 - Aoi hitomi (remix)[/url][*][url="http://www.last.fm/music/BONNIE+PINK/_/Lie+Lie+Lie"]BONNIE PINK - Lie Lie Lie[/url][/list]</div>
<div id="cover">[img]http://static.last.fm/coverart/130x130/1416504.jpg[/img]</div>
<div id="artist">[url="http://www.last.fm/music/%E6%A4%8E%E5%90%8D%E6%9E%97%E6%AA%8E"]椎名林檎[/url]</div>
<div id="album">[url="http://www.last.fm/music/%E6%A4%8E%E5%90%8D%E6%9E%97%E6%AA%8E/Muzai%20Moratorium"]Muzai Moratorium[/url]</div>
<div id="track">[url="http://www.last.fm/music/%E6%A4%8E%E5%90%8D%E6%9E%97%E6%AA%8E/_/Tadashii+machi"]Tadashii machi[/url]</div>
<div id="duration"><span id="lfmp-dur">00:01</span> / 03:53</div>
<div id="bookmarks"><form action="/station" name="lfmpform" method="get">Station:<select name="url" onChange="document.lfmpform.submit();">><option value="lastfm://globaltags/japanese%20female%20vocalists">japanese female vocalists</option>
<option value="lastfm://artist/Air/similarartists">artist/Air/similarartists</option>
<option value="lastfm://globaltags/piano%20rock">piano rock</option>
<option value="lastfm://play/artists/1257924">play/artists/1257924</option>
<option value="lastfm://globaltags/alternative">alternative</option>
<option value="lastfm://play/artists/1000265">play/artists/1000265</option>
<option value="lastfm://artist/%E6%9E%97%E5%8E%9F%E3%82%81%E3%81%90%E3%81%BF/similarartists">artist/%E6%9E%97%E5%8E%9F%E3%82%81%E3%81%90%E3%81%BF/similarartists</option>
<option value="lastfm://artist/%E5%9D%82%E6%9C%AC%E7%9C%9F%E7%B6%BE/fans">artist/%E5%9D%82%E6%9C%AC%E7%9C%9F%E7%B6%BE/fans</option>
<option value="lastfm://play/tracks/1023245">play/tracks/1023245</option>
<option value="lastfm://globaltags/psychill">psychill</option>
</select></form></div>
<div id="buttons">[url="/"]Refresh[/url] [url="/skip"]Skip[/url] [url="/love"]Love[/url] [url="/ban"]Ban[/url] [url="/nortp"][x][/url] Record to profile [url="/discovery/off"][x][/url] Discovery </div>
</body></html>
er parst die div-tags mit allen attributen korrekt, aber wenn ich auf das img-tag
[img]http://static.last.fm/coverart/130x130/1416504.jpg[/img] zugreife, dann gibt er mir als attributes.length null zurück, als nodename aber korrekt img. mach ich da irgendwas falsch?
  Mit Zitat antworten Zitat