jTidy and TagSoup documentation
Asked Answered
I

1

6

I'm looking for documentation (officially documentation if it is possible) for TagSoup and jTidy libraries.

I want use this libraries to manipulate html "tagsoup" files that include xml tags with different namespaces mixed between html (html, xhtml or html5) tags.

I have tested HTMLCleaner, NekoHTML and Jericho, but i don't find documentation for jTidy and TagSoup, apart from simplest examples to clear a file.

I need documentation about manipulate contents, replace tags, extract info, etc...

Thanks

Note: After test all options, I used StAX / Woodstox :

Isabea answered 15/12, 2010 at 16:49 Comment(4)
Did you consider Jsoup? It can't be done better/easier. It has a good Cookbook as well.Bugeye
I'm testing Jsoup. She look easy but view examples code, it seem no thread-safe. am i right?Isabea
Is it me or does Jsoup not support output stream ?Difficile
@Difficile Check at the end of the question. StAX is for streams.Isabea
G
2

The answer to a similar question on the tagsoup-friends google group may help:

Documentation for TagSoup

You've probably already seen them, but the javadoc for JTidy is available here: http://jtidy.sourceforge.net/apidocs/index.html

Goddamn answered 15/12, 2010 at 17:4 Comment(2)
So TagSoup use SAX API, but ¿JTidy? :( ThanksIsabea
JTidy does not, it is basically something like you give it an input stream, get it parsed and then get the output from the output stream.Sarah

© 2022 - 2024 — McMap. All rights reserved.