Hi, Guys,
I turn to one of the page in my system, view the page source, it displays:
*<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<!-- server01 -->
<html xmlns="http://www.w3.org/1999/xhtml";
xmlns:v="urn:schemas-microsoft-com:vml">
<head>
    <title>active</title>
</head>
<body>
</body>
</html>*

If I use *ie.html*, I can only get the code between <html>***</html>
I can use ie.document.body.innerHtml to get the code between
<body>***</body>

1. If I would like to get only the code between <head>***</head>, how can I
make it?
2. If I would like to get the *<!-- server01 --> *, how can I make it? how
can I get *<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>?*


Any suggestion would be quite appreciated.

Thanks.
Wesley Chen.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to