Re: [Htmlparser-user] Avoid tag balancing
Brought to you by:
derrickoswald
From: <qik...@16...> - 2009-02-22 12:06:58
|
CompositeTagScanner.java Line 125 pls comment else if (isTagToBeEndedFor (ret, next)) // check DTD => //else if (isTagToBeEndedFor (ret, next)) // check DTD for the other tag ,you can also comment the balance code for the style tag StyleScanner.java comment the following code /* // build new end tag if required if (null == node) { attribute = new Attribute ("/style", null); vector = new Vector (); vector.addElement (attribute); node = lexer.getNodeFactory ().createTagNode ( lexer.getPage (), position, position, vector); } */ ======= 2009-02-22 17:09 11:09:25 Roy Michael 您在来信中写到: [Htmlparser-user] Avoid tag balancing======= I am using version 1.6, and I am wondering if there is a way to avoid / disable the tag balancing operation when using the parser. I still need the parser functionality over the laxer, but I want to avoid the tag balancing operations, even if the document is malformed. Roy. = = = = = = = = = = = = = = = = = = = = |