Re: [Htmlparser-user] Not CompositeNode ("ADDRESS", "CENTER" TAG, etc...)
Brought to you by:
derrickoswald
From: <ka...@ex...> - 2006-02-07 07:14:24
|
Hi, all. I notice that correct way. I created a AddressTag.java that is almost copy of ParagraphTag.java And add same code like this. PrototypicalNodeFactory factory = new PrototypicalNodeFactory(); factory.registerTag (new AddressTag()); parser.setNodeFactory (factory); It's ok, but Should I create another alot of HTML tag classes ? I think that there are almost Html Tag classes already. How can I get ? Thank you, all. > Hi, all. > > I parsed a html, and create a dom , using > HTMLParser Version 1.6 (Integration Build Nov 12, 2005) > > The "P" tag has "P" END TAG as child. > (It's is same at "HEAD", "TITLE", "BODY", etc...) > > The othe hand, there are 2 "ADDRESS" Tag ("ADDRESS" and "/ADDRESS") > on the same level in dom. > (It's the same thing at "CENTER" tag.) > > I expected that ADDRESS tag become like "P" tag, but not. > > Why the reason ? > > How can I that the paser recognize ADDRESS tag as a single > CompositeTag. > > Thank you, all. Sorry my poor english. > |