XML hjælp - problem med at læse filen
Hej jeg har en XML fil som ser sådan her ud:<?xml version="1.0" ?>
- <xmldata>
- <pictures>
<picture thumb="thumb_800_Forest.jpg" big="800_800_Forest.jpg" />
<picture thumb="thumb_Forest Flowers.jpg" big="800_Forest Flowers.jpg" />
<picture thumb="thumb_800_Forest.jpg" big="800_800_Forest.jpg" />
<picture thumb="thumb_800_Forest.jpg" big="800_800_Forest.jpg" />
<picture thumb="thumb_800_Forest.jpg" big="800_800_Forest.jpg" />
</pictures>
- <text>
- <logotext>
- <![CDATA[ lk
]]>
</logotext>
- <address>
- <![CDATA[ lk
]]>
</address>
- <line name="Type">
- <![CDATA[ lk
]]>
</line>
- <line name="size">
- <![CDATA[ lk
]]>
</line>
- <line name="housed area">
- <![CDATA[ l
]]>
</line>
- <line name="total area">
- <![CDATA[ kl
]]>
</line>
- <line name="built">
- <![CDATA[ kl
]]>
</line>
- <line name="rooms1">
- <![CDATA[ k
]]>
</line>
- <line name="rooms2">
- <![CDATA[ lk
]]>
</line>
- <line name="price">
- <![CDATA[ lk
]]>
</line>
- <line name="downpayment">
- <![CDATA[ lk
]]>
</line>
- <line name="price/kvm">
- <![CDATA[ lk
]]>
</line>
</text>
</xmldata>
Det jeg ønsker er at få alle linier ud i enkelte strenge, så jeg kan modificere dem i mit asp dokument.
Set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = False
xml.Load ("d:\uploadData\" & strURL & "\config.xml")
' alle billederne
Set arrPictures = xml.GetElementsByTagName("picture")
For i = 0 To arrPictures.Length-1
Response.Write arrPictures.Item(i).GetAttribute("thumb") & " " & "<br>"
response.Write arrPictures.Item(i).GetAttribute("big") & " " & "<br>"
Next
Dette virker fint nok til at skrive første del ud - men hvordan får jeg resten ud?