parsing html pages from tcl
- by mithunmo
Hello ,
I using tdom version 0.8.2 to parse html pages.
From the help pages I found the following commands to get the ElementById
TCL code
set html {<html>
<head>
</head>
<body>
<div id="m">
</div>
</body>
</html>
}
package require tdom
set doc [ dom parse -html $html ]
set node [ $doc getElementById m]
But when I execute the second set command I get a empty string . But cleary the tag has an id of m .
Can someone tell where am I going wrong ?
Regards,
Mithun