i want to parse complete HTML children and its children wherein i will not have any attribute id placed to tag.
For eg:
<html>
<head>
<script>
function blah(){
alert("hi");
}
</script>
<style>
body{
font:10px;
}
</style>
</head>
<body>
<h1> My Header </h1>
<div class="container">
<div class="colone">Hai22</div>
<div class="coltwo">Hai44</div>
</div>
</body>
</html>
Now i would like to parse the whole html and get its children one by one and convert it into JSON string. like
{
"html":{
"head":{
"script":
.
.
.
.
.
.
.
}