R
Richard G.
Hi All,
I am newbie in XML.
I am designing a dynamic menu and retrieving data from xml.
I have the xml file something like this:
<?xml version="1.0" ?>
<ROOT>
<node value="1.0" image="folder.gif" url_value="my_home.html"
target="main_win">
</node>
<ROOT>
I have no problem retriving the element to the html table menu.
However I can't find a way to set the target value based on the xml
data. for example
<TABLE id=PrimaryTable dataSrc=#TheData cellSpacing=0 cellPadding=0
border=0>
<TBODY>
<TR>
<TD><IMG dataFld=image id=Icon>
<a datafld="menu_url"><SPAN dataFld=value></SPAN></a>
</TD>
</TR>
Based on the sample above i can retrive data from the xml data file
and created the hyperlink point to "menu_url" attribute of the
element. But I need to set the target where we can decide where to
open this url. something like <a href='abc.htm' target="new_win">
Does anyone know how to do that?
Any help is greatly appreciated.
Best Regards,
Richard
I am newbie in XML.
I am designing a dynamic menu and retrieving data from xml.
I have the xml file something like this:
<?xml version="1.0" ?>
<ROOT>
<node value="1.0" image="folder.gif" url_value="my_home.html"
target="main_win">
</node>
<ROOT>
I have no problem retriving the element to the html table menu.
However I can't find a way to set the target value based on the xml
data. for example
<TABLE id=PrimaryTable dataSrc=#TheData cellSpacing=0 cellPadding=0
border=0>
<TBODY>
<TR>
<TD><IMG dataFld=image id=Icon>
<a datafld="menu_url"><SPAN dataFld=value></SPAN></a>
</TD>
</TR>
Based on the sample above i can retrive data from the xml data file
and created the hyperlink point to "menu_url" attribute of the
element. But I need to set the target where we can decide where to
open this url. something like <a href='abc.htm' target="new_win">
Does anyone know how to do that?
Any help is greatly appreciated.
Best Regards,
Richard