Re: [Htmlparser-user] HTML validator for html parser
Brought to you by:
derrickoswald
From: Derrick O. <der...@ro...> - 2008-03-24 11:40:52
|
Unknown tags are returned as generic tags. The code that does this is in PrototypicalNodefactory.createTagNode(). If you create a class that implements the NodeFactory interface you can substitute it for the default PrototypicalNodefactory and determine which nodes are not in the list of known tags or handle it any way you want. You can probably just create a class derived from PrototypicalNodefactory and override createTagNode (). Then set it on your parser with setNodeFactory(). ----- Original Message ---- From: Binod Dokania <bdo...@is...> To: htm...@li... Sent: Monday, March 24, 2008 12:23:40 AM Subject: [Htmlparser-user] HTML validator for html parser <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue;text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple;text-decoration:underline;} span.EmailStyle17 {font-family:Arial;color:windowtext;} _filtered {margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {} --> Hi, I have a query regarding using HTML parser. Does html parser provide any html validator before start parsing a html document with HTML parser? I have some html documents created using different html development tools. These html documents create different html tags. So If we can get html validator which provides the information about the lines/tags not recognized by html parser. Any ideas/suggestion on this would be appreciated. Thanks in advance, Warm Regards, Binod Dokania -----Inline Attachment Follows----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -----Inline Attachment Follows----- _______________________________________________ Htmlparser-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlparser-user |