0
다음 XML이 있고 아래의 ASP 문이 작동하지만 response.write가 아닌 특정 태그를 가져와야합니다. 즉 "Document_Name"또는 "Document_Size"를 가져오고 싶습니다.기본 ASP 및 XML
아무도 내가 이것을 할 수있는 방법을 알고 있습니까?
<PropertyImages>
<Image>
<Document_Name>tes1.png</Document_Name>
<Document_Size>123</Document_Size>
</Image>
<Image>
<Document_Name>Test.png</Document_Name>
<Document_Size>123</Document_Size>
</Image>
</PropertyImages>
이것은
Set objHdl = objLst.item(i)
Set PropertyImages = ObjHdl.getElementsByTagName("PropertyImages")
for x = 0 to (PropertyImages.Length-1)
Set Image = PropertyImages.item(x)
response.write "Image=" & Image.text & "<br>"
next
이 작동하는 것 같다,하지만 첫 번째 이미지 정보를 다시 제공합니다 .. 코드입니다? 나는 특정 자산으로 되돌아 가야 할 이미지가 많다.
Set images = objHdl.getElementsByTagName("Image")
For each image in images
ImageURL = image.SelectSingleNode("Image_URL").text
Next