ASP & XML Bitte helft mir :(

crazytom

Grünschnabel
Es ist zum heulen. Seid über einer Woche hänge ich an einem Problem. Ich muss mit ASP eine XML Datei auslesen. Das stellt kein Problem dar. Da ich aber ein Tree Menü erstellen muss, so ist wichtig das alle Childs ausgelsen werden und diese natürlich an der richtigen Stelle eingerückt sein müssen. Und damit beginnt das Grauen. Für das Treemenü habe ich eine Lösung nur will diese folgendes wissen:

Set Node = TreeView.Nodes.Add([Relative], [Relationship = 4 (ChildNode)], [Key])

Quasi muss bei Relative immer das Parent Child und bei Key die eigene ID des Childs rein.

Es darf wirklich nur mittels XML und ASP gelöst werden (keine XSl oder so!)

Kann mir jemand helfen? Ich flipp noch aus.. :(

Hier noch die XML:

Code:
<?xml version="1.0" encoding="utf-8"?>
<TOOLBAR icons="nav.bmp" hot_icons="nav.bmp" name="agentone" dllname="toolbar" encoding="utf-8">
	<BUTTON hint="My Logo" id="tb_btn_vFSMgLLx" command="redirect" href="http://www.agent-one.de">
		<MENU type="Split" img="demo_logo.bmp">
			<ITEM caption="Home Page" hint="Home Page" href="http://www.agent-one.de" command="redirect"/>
			<ITEMLinks caption="Links" hint="Links" img="28">
				<ITEML1 caption="Link1" hint="Link1" img="2" href="http://www.besttoolbars.net" command="redirect"/>
				<ITEML2 caption="Link2" hint="This is a second link" img="5" href="http://www.softomate.com" command="redirect"/>
			</ITEMLinks>
			<SEPARATOR/>
			<ITEM caption="Clear Search History" hint="Clear Search History" img="20" command="clearhistory"/>
			<ITEMHelp caption="Help" hint="Help" img="31">
				<ITEMh1 caption="Contact Us..." hint="Contact Us..." img="9" href="http://www.agent-one.de" command="redirect"/>
				<ITEMh2 caption="Uninstall" hint="Uninstall Toolbar" img="46" command="uninstall">
					<ITEM3 caption="Uninstall" hint="Uninstall Toolbar" img="46" command="uninstall">
						<ITEMc4 caption="Contact Us..." hint="Contact Us..." img="9" href="http://www.agent-one.de" command="redirect">
								<ITEMc41 caption="Link2" hint="This is a second link" img="5" href="http://www.softomate.com" command="redirect"/>
						</ITEMc4>
					</ITEM3>
				</ITEMh2>
			</ITEMHelp>
		</MENU>
	</BUTTON>
	<SEPARATOR/>
	<COMBO name="search" hint="Search Google" limit="40" histmax="10" id="tb_cmb_vOntsvHe" command="IyCUsMIK">
		<WIDTH>100</WIDTH>
		<WIDTH>130</WIDTH>
		<WIDTH>150</WIDTH>
	</COMBO>
	<BUTTON caption="Search Options" id="tb_btn_NPCiBsRQ" img="11">
		<MENU type="Split">
			<ITEM caption="Search Google" hint="Search Google" img="7" command="LkWbkGNJ"/>
			<ITEM caption="Search Your Site" img="20" command="dNBwmNvF"/>
		</MENU>
	</BUTTON>
	<SEPARATOR/>
	<BUTTON hint="Read News" id="tb_btn_nInsRymW" img="24" href="http://www.agent-one.de" command="redirect"/>
	<SEPARATOR/>
	<BUTTON caption="Block PopUps" hint="Block PopUp windows" id="tb_btn_hJRzMYnB" img="45" command="blockPopups"/>
	<BUTTON caption="Highlight" hint="Highlight text" id="tb_btn_VJMeSAfj" img="22" command="Highlight"/>
	<SEPARATOR/>
	<BUTTON caption="Zoom In" hint="Zoom In" id="tb_btn_qtiqmcxz" img="49" command="zoomIn"/>
	<BUTTON caption="Zoom Out" hint="Zoom Out" id="tb_btn_TBElRAqR" img="50" command="zoomOut"/>
	<SEPARATOR/>
	<INCLUDE_CUSTOM_XML name="rssreader_YPXqrpSQ"/>

	<COMMANDS>
		<ZOOMOUT name="zoomOut"/>
		<ZOOMIN name="zoomIn"/>
		<UNINSTALL name="uninstall"/>
		<BLOCKPOPUPS name="blockPopups" default="0"/>
		<HIGHLIGHT name="Highlight"/>
		<CLEARHISTORY name="clearhistory"/>
		<RSSREADER reader_id="YPXqrpSQ" caption="" img="12" type="dropdown" switch="1" options="1" controls="1" speed="2" size="2">
			<CHANNEL url="http://www.softomate.net/tbuilder/get_rss.php?UID=6710"/>
		</RSSREADER>
		<LOCALHTML href="options.html" name="options"/>
		<LOCALHTML href="error.html" name="error"/>
		<LOCALHTML href="about.html" name="about"/>
		<WEBJUMP href="http://www.google.com/search?q=%search" name="IyCUsMIK"/>
		<WEBJUMP href="http://www.google.com/search?q=%search" name="LkWbkGNJ"/>
		<WEBJUMP href="http://www.agent-one.de?q=%search" name="dNBwmNvF"/>
		<WEBJUMP href="" name="redirect"/>
	</COMMANDS>

	<SETTINGS>
		<MESSAGE id="corruptedMsg" default="One of the XML files is corrupted or invalid. Press OK to uninstall."/>
		<MESSAGE id="uninstallMsg" default="This will remove the agentone from your computer! Are you sure?"/>
		<MESSAGE id="updateMsg" default="This will try to update the agentone from the server. Continue?"/>
		<MESSAGE id="autoUpdateMsg" default="New version of agentone is available. Would you like to download and install new version?"/>
		<MESSAGE id="versionError" default="Can not find current version information."/>
		<MESSAGE id="connectionError" default="Can't establish a connection."/>
		<MESSAGE id="lastVersionMsg" default="You have the latest version of the agentone."/>
		<MESSAGE id="contextMenuItemName" default="agentone search"/>
		<MESSAGE id="closeAllWindowsForUpdate" default="All running IE Windows will be closed before updating the agentone. Continue?"/>

		<URL id="firstURL" default="http://www.agent-one.de"/>
		<URL id="serverpath" default="http://www.agent-one.de"/>
		<URL id="updateUrl" default="http://www.agent-one.de"/>
		<URL id="urlAfterUpdate" default="http://www.agent-one.de"/>
		<URL id="urlAfterUninstall" default="http://www.agent-one.de"/>
		<URL id="contextSearch" default="http://www.google.com/search?q=%s"/>

		<CHECKBOX id="OpenNew" default="0"/>
		<CHECKBOX id="AutoComplete" default="1"/>
		<CHECKBOX id="KeepHistory" default="1"/>
		<CHECKBOX id="RunSearchAutomatically" default="1"/>
		<CHECKBOX id="RunSearchDragAutomatically" default="1"/>
		<CHECKBOX id="DescriptiveText" default="1"/>
		<CHECKBOX id="ShowHighlightButton" default="1"/>
		<CHECKBOX id="ShowFindButtons" default="0"/>
		<CHECKBOX id="UpdateAutomatically" default="0"/>

		<FONT name="Tahoma" size="13"/>

		<HIGHLIGHT>
			<COLOR>F6FF00</COLOR>
			<COLOR>00FFE4</COLOR>
			<COLOR>5AFF00</COLOR>
			<COLOR>0087FF</COLOR>
			<COLOR>FFCC00</COLOR>
			<COLOR>FF00F0</COLOR></HIGHLIGHT>

		<RADIO name="EditWidthsearch" default="1">
			<id>Widthsearch0</id>
			<id>Widthsearch1</id>
			<id>Widthsearch2</id>
		</RADIO>
	</SETTINGS>
</TOOLBAR>
 

Neue Beiträge

Zurück