EDN Admin
Well-known member
hi,all,I have a small piece of html code which is embedded as an attribute of a xml node, e.g.
<pre class="prettyprint <XMLNode DoC="11" SourceIndex="285" FrameSourceIndex="0" SRC="<A href="http://www.allbookstores.com/book/compare/9780439139595 <IMG style="MARGIN-TOP: 5px" border=0 alt="Compare Prices" src="http://st.xsm.us/images/btn_compareprices.png" width=111 height=22></A> "/></XMLNode>[/code]
<br/>
now, I want to retrieve the value of SRC attribute of the xml node, and then retrieve the value of src attribute in <IMG>. I know how to retrieve the value of SRC attribute from the xml node, but I dont know how to get the value of src from
<IMG>. Do I need to make the value of SRC as a IHTMLDocument2, and then get the src value of <IMG>, and how to do that?
cheers
View the full article
<pre class="prettyprint <XMLNode DoC="11" SourceIndex="285" FrameSourceIndex="0" SRC="<A href="http://www.allbookstores.com/book/compare/9780439139595 <IMG style="MARGIN-TOP: 5px" border=0 alt="Compare Prices" src="http://st.xsm.us/images/btn_compareprices.png" width=111 height=22></A> "/></XMLNode>[/code]
<br/>
now, I want to retrieve the value of SRC attribute of the xml node, and then retrieve the value of src attribute in <IMG>. I know how to retrieve the value of SRC attribute from the xml node, but I dont know how to get the value of src from
<IMG>. Do I need to make the value of SRC as a IHTMLDocument2, and then get the src value of <IMG>, and how to do that?
cheers
View the full article