S
Stan SR
Hi,
I need to read a html file and parse it as a XML File.
All my html file have this structure.
<html>
<head>
<title>
</title>
<script language="javascript">
</script>
</head>
<body>
</body>
</html>
My code has to read some sections (title, script, body).
Everything works when the script language (javascript code) section has not
code or not a lot, but sometimes it fails when there are characters like ;
(especially in "for" statement).
So for that works, I had to add "decorate" the script section with
<![CDATA[ ]]> and it looks like
<script language="javascript">
<![CDATA[
]]>
</script>
Is there a way to parse the file without using the <![CDATA[ ]]> tag ?
Stan
I need to read a html file and parse it as a XML File.
All my html file have this structure.
<html>
<head>
<title>
</title>
<script language="javascript">
</script>
</head>
<body>
</body>
</html>
My code has to read some sections (title, script, body).
Everything works when the script language (javascript code) section has not
code or not a lot, but sometimes it fails when there are characters like ;
(especially in "for" statement).
So for that works, I had to add "decorate" the script section with
<![CDATA[ ]]> and it looks like
<script language="javascript">
<![CDATA[
]]>
</script>
Is there a way to parse the file without using the <![CDATA[ ]]> tag ?
Stan