HTML parsing

"Swapna Gupta" <[email protected]> Mon, 7 Jun 2004 17:12:20 -0500
Newsgroups gmane.comp.java.enhydra.kxml
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------_=_NextPart_001_01C44CDC.809476F3
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

How can one use kxml in "Relaxed" mode to parse HTML?

In the javadocs at=20

http://kxml.enhydra.org/software/documentation/apidocs/  I can see the
method setRelaxed
<http://kxml.enhydra.org/software/documentation/apidocs/org/kxml/parser/
XmlParser.html#setRelaxed(boolean)> (boolean relaxed) in the class
XmlParser.

=20

But in the downloaded (v.2.1.9) version of kxml2 there is no class
called XmlParser or method called setRelaxed.

=20

Is parsing in Relaxed mode not yet supported?

=20

Thanks,

Swapna


------_=_NextPart_001_01C44CDC.809476F3
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:Arial;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:#606420;
	text-decoration:underline;}
code
	{font-family:"Courier New";}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3D"#606420">

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt'>How
can one use kxml in &#8220;Relaxed&#8221; mode to parse =
HTML?</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt'>In the
javadocs at </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt'><a
href=3D"http://kxml.enhydra.org/software/documentation/apidocs/">http://k=
xml.enhydra.org/software/documentation/apidocs/</a>
&nbsp;I can see the method </span></font><code><b><font face=3D"Courier =
New"><span
style=3D'font-weight:bold'><a
href=3D"http://kxml.enhydra.org/software/documentation/apidocs/org/kxml/p=
arser/XmlParser.html#setRelaxed(boolean)">setRelaxed</a></span></font></b=
>(boolean&nbsp;relaxed)
in the class XmlParser.</code></p>

<p class=3DMsoNormal><code><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'>&nbsp;</span></font></code></p>

<p class=3DMsoNormal><code><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'>But in the downloaded (v.2.1.9) version of =
kxml2 there
is no class called XmlParser or method called =
setRelaxed.</span></font></code></p>

<p class=3DMsoNormal><code><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'>&nbsp;</span></font></code></p>

<p class=3DMsoNormal><code><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'>Is parsing in Relaxed mode not yet =
supported?</span></font></code></p>

<p class=3DMsoNormal><code><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'>&nbsp;</span></font></code></p>

<p class=3DMsoNormal><code><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'>Thanks,</span></font></code></p>

<p class=3DMsoNormal><code><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'>Swapna</span></font></code></p>

</div>

</body>

</html>

------_=_NextPart_001_01C44CDC.809476F3--