about html operate [modified]
-
C# has XmlDocument and other xml operate object. has it Html operate object? such as XmlDocument. use in WinForm.
check SHDocVw.dll (Microsoft Internet Controls) You can use Document property WebBrowserClass to get the HTMLDocument. Hope this helps you.
-
check SHDocVw.dll (Microsoft Internet Controls) You can use Document property WebBrowserClass to get the HTMLDocument. Hope this helps you.
-
C# has XmlDocument and other xml operate object. has it Html operate object? such as XmlDocument. use in WinForm.
-
Basically SHDocVw is a com dll. Add following references... .NET -> Microsoft.MSHtml COM -> Microsoft Internet Controls Then You can use MSHTml.HTMLDocument object to access various properties of HTML like activeelement, baseurl, childnodes etc...
-
HTML is a page description language, not a programming language, so it doesn't have any objects at all. Javascript has some objects to handle XML. google "javascript xml"[^]
--- single minded; short sighted; long gone;
I want to get some html's Element's text value, and some Attribute value. Html structure as follows: Textjason  Textjaosn  .... img and text irregularly display. I want font-Attribute,text and src's value. how to do is better?
-
Basically SHDocVw is a com dll. Add following references... .NET -> Microsoft.MSHtml COM -> Microsoft Internet Controls Then You can use MSHTml.HTMLDocument object to access various properties of HTML like activeelement, baseurl, childnodes etc...
-
I want to get some html's Element's text value, and some Attribute value. Html structure as follows: Textjason  Textjaosn  .... img and text irregularly display. I want font-Attribute,text and src's value. how to do is better?
-
I can only see half of the code that you posted. Use the "Ignore HTML" option when you are posting htlm code.
--- single minded; short sighted; long gone;
-
I have a html Fragment: "{font face=宋体 color=#FF00FF>JasonJason
Can you just try out using mshtml.HTMLDocument class? I remember using it for somewhat similar purpose. Or else if possible mail me your file I will look if I can do any thing. Thanks...
-
jason  jaosn  ....