| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
The Java HTML API assists developers to write, read, modify, navigate and convert (X)HTML documents from within Java applications.
Aspose.HTML for Java API works as a headless browser that allows you to create or open existing HTML documents from various sources in order to perform manipulation operations such as remove and replace HTML nodes, save HTML documents, extract CSS from HTML, configure a document sandbox and more. You may navigate HTML documents by using various methods, such as, element traversal, document traversal, XPath queries, and CSS selector queries as well as manipulate HTML DOM via JavaScript, convert HTML file to images or fixed layout formats, and convert XHTML and EPUB files to other file formats.
In order to make changes in the repository, you need to:
Web: HTML, XHTML^, MHTML^^
Other: SVG*, MD**
Fixed Layout: PDF, XPS
Images: TIFF, JPEG, PNG, BMP
Images: EPUB
Aspose hosts all Java APIs at the Aspose Repository. You can easily use Aspose.HTML for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installing Aspose.HTML for Java from Aspose Repository documentation page.
HTMLDocument document = HTMLDocument(new Url("template.html"));
// read children nodes and get length information
if (document.getBody().getChildNodes().getLength() == 0)
System.out.println("No ChildNodes found...");
// print Document URI to console. As per information above, it has to be https://www.w3.org/TR/html5/
System.out.println("Print Document URI = " + document.getDocumentURI());
// print domain name for remote HTML
System.out.println("Domain Name = " + document.getDomain());Clone or Download the ZIP and extract the contents to your local hard drive. This project uses Maven/Gradle build system and can be opened in any modern IDE like IntelliJ IDEA, Eclipse or NetBeans. For more details, visit our Documentation website.
For maven
mvn compile test
For gradle
gradle build
Maven
mvn -Dtest="com.aspose.html.examples.**" test
Gradle
./gradlew test --tests "com.aspose.html.examples.*"
Maven
mvn -Dtest=Examples_Java_AdvancedUsage_DOMMutationObserver_ObserveHowNodesAreAdded test
Gradle
./gradlew test --tests "com.aspose.html.examples.Examples_Java_AdvancedUsage_DOMMutationObserver_ObserveHowNodesAreAdded"
Maven
mvn org.codehaus.mojo:exec-maven-plugin:3.0.0:java -Dexec.mainClass="com.aspose.html.examples.SimpleWait" -Dexec.classpathScope="test" -Dexec.cleanupDaemonThreads=false
Gradle
./gradlew SimpleWait
Home | Product Page | Docs | Demos | GISTS | API Reference | Blog | Search | Free Support | Temporary License
| Back | FazBrowse Home | New Git URL |