Hi, all:
I possess little knowledge about COM, however, I need to modify a
COM-related program. I've got such problem: there is a variable pNode
with type CComPtr<IHTMLDOMNode>, and it points to a "link" node. In
HTML source, the node looks like "<link href="
http://style.css"
rel="stylesheet" type="text/css" />". I want to retrieve value for rel
(stylesheet) and type (text/css) by whatever method. After looking up
MSDN I find several possibilities: get_nodeName(), get_nodeValue(),
get_nodeType(), but none of them could returns what I need.
get_nodeName returns "link" of course, get_nodeValue() returns NULL
and get_nodeType returns an integer. How could I get detailed
information about a certain node? Thanks a lot for helping me.