我正在尝试从我的 C# 代码访问由第三方设置的这个 xml。我可以使用定义明确的节点来访问 XML,但我不熟悉它们的 XML 设置方式。有没有办法让我把这些数据拿出来?
这是我不熟悉的 XML 示例。谢谢。
<DATA>
<HOTSPOTSETUP
CHOICELIST="2"
LISTSOURCE="NAME"
LISTTITLE="Hotspots"
INITIALVISIBILITY="1"
MINSCALE="0.25"
MAXSCALE="2" />
<HOTSPOT
ID="1"
NAME="Simple Caption Hotspot"
MEDIATYPE="url"
MEDIA="Assets/Hotspots/hotspotFromJPG.jpg"
X="225"
Y="1375"
ZOOM="100"
XSCALE="100"
YSCALE="100"
URL="http://www.zoomify.com"
URLTARGET="_self"
ROLLOVER="0"
CAPTION="Simple Caption"
TOOLTIP="This is a simple tooltip." >
</HOTSPOT>
<HOTSPOT
ID="2"
NAME="Transparent PNG Hotspot"
MEDIATYPE="url"
MEDIA="Assets/Hotspots/hotspotFromPNG.png"
X="525"
Y="1375"
ZOOM="100"
XSCALE="100"
YSCALE="100"
URL="http://www.viewthewall.com"
URLTARGET="_blank"
ROLLOVER="0"
CAPTION="Transparent PNG Hotspot"
TOOLTIP="This hotspot's graphic includes transparent areas." >
</HOTSPOT>
<HOTSPOT
ID="3"
NAME="Hotspot Without Caption"
MEDIATYPE="url"
MEDIA="Assets/Hotspots/hotspotFromPNG.png"
X="825"
Y="1375"
ZOOM="100"
XSCALE="100"
YSCALE="100"
URL="http://www.adobe.com"
URLTARGET="_blank"
ROLLOVER="0"
CAPTION=""
TOOLTIP="This hotspot has no caption." >
</HOTSPOT>
<HOTSPOT
ID="4"
NAME="Hotspot Visible On Rollover"
MEDIATYPE="url"
MEDIA="Assets/Hotspots/hotspotFromPNG.png"
X="1125"
Y="1375"
ZOOM="100"
XSCALE="100"
YSCALE="100"
URL="http://www.zoomify.com"
URLTARGET="_blank"
ROLLOVER="1"
CAPTION="Rollover Hotspot"
TOOLTIP="This hotspot is revealed on mouse-over." >
</HOTSPOT>
<HOTSPOT
ID="5"
NAME="Hotspot Without Graphic"
MEDIATYPE="url"
MEDIA=""
X="1125"
Y="1500"
ZOOM="100"
XSCALE="100"
YSCALE="100"
URL="http://www.zoomify.com"
URLTARGET="_blank"
ROLLOVER="0"
CAPTION="Hotspot Without Graphic (roll mouse over ruby above!)"
TOOLTIP="This hotspot has no graphic." >
</HOTSPOT>
<HOTSPOT
ID="6"
NAME="Hotspot Without Click Link"
MEDIATYPE="url"
MEDIA="Assets/Hotspots/hotspotFromPNG.png"
X="1425"
Y="1375"
ZOOM="100"
XSCALE="100"
YSCALE="100"
URL=""
URLTARGET=""
ROLLOVER="0"
CAPTION="Hotspot Without Click Link Or Tooltip"
TOOLTIP="" >
</HOTSPOT>
<HOTSPOT
ID="7"
NAME="Reused External Icon"
MEDIATYPE="url"
MEDIA="Assets/Hotspots/hotspotFromJPG.jpg"
X="1725"
Y="1375"
ZOOM="100"
XSCALE="100"
YSCALE="100"
URL="http://www.adobe.com"
URLTARGET="_self"
ROLLOVER="0"
CAPTION="Reusing External Icons is OK"
TOOLTIP="This hotspot automatically clones the JPG graphic file." >
</HOTSPOT>
</DATA>