CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sat, 19 Jul 2025 06:14:03 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20070708133224
location: https://web.archive.org/web/20070708133224/https://xhtmltranscoder.dev.java.net/
server-timing: captures_list;dur=1.188999, exclusion.robots;dur=0.050511, exclusion.robots.policy;dur=0.031358, esindex;dur=0.018177, cdx.remote;dur=5.647276, LoadShardBlock;dur=278.534637, PetaboxLoader3.datanode;dur=89.121272, PetaboxLoader3.resolve;dur=147.902043
x-app-server: wwwb-app201
x-ts: 302
x-tr: 335
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: SERVER=wwwb-app201; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sat, 19 Jul 2025 06:14:04 GMT
content-type: text/html;charset=UTF-8
x-archive-orig-date: Sun, 08 Jul 2007 13:32:24 GMT
x-archive-orig-server: Apache
x-archive-orig-set-cookie: JSESSIONID=A1CBA9FDE7C8575C45D6E671596399AE; Path=/servlets; Secure
x-archive-orig-set-cookie: JSESSIONID=A1CBA9FDE7C8575C45D6E671596399AE; Domain=.dev.java.net; Path=/; Secure
x-archive-orig-x-powered-by: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5
x-archive-orig-pragma:
x-archive-orig-cache-control: private,max-age=0,must-revalidate
x-archive-orig-helmloginid: guest
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 08 Jul 2007 13:32:24 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 08 Jul 2007 13:32:24 GMT", ; rel="memento"; datetime="Sun, 08 Jul 2007 13:32:24 GMT", ; rel="last memento"; datetime="Sun, 08 Jul 2007 13:32:24 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: IA-AROUND-THE-WORLD-2007-20070708130538-16718-crawling04-c/IA-AROUND-THE-WORLD-2007-20070708132644-24026-crawling01.us.archive.org.arc.gz
server-timing: captures_list;dur=1.247253, exclusion.robots;dur=0.060250, exclusion.robots.policy;dur=0.034688, esindex;dur=0.021152, cdx.remote;dur=8.333680, LoadShardBlock;dur=229.690346, PetaboxLoader3.datanode;dur=290.448993, PetaboxLoader3.resolve;dur=246.259934, load_resource;dur=347.929769
x-app-server: wwwb-app201
x-ts: 200
x-tr: 648
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
xhtmltranscoder: Home
|
xhtmltranscoder
|
Summary | class that converts broken HTML code to well-formed XHTML |
---|---|
Categories | None |
License | Lesser General Public License (LGPL) |
Owner(s) | nicolaasuni |
Name | XHTMLTranscoder |
Version | 1.0.007 |
Date | 2006-02-03 |
Author | Nicola Asuni |
Copyright | Tecnick.com S.r.l. Via Ugo Foscolo n.19 09045 Quartu Sant'Elena (CA) ITALY www.tecnick.com |
License | GNU LESSER GENERAL PUBLIC LICENSE v.2.1 |
Source Code and Documentation
Description
XHTMLTranscoder is an open-source Java class that quickly converts broken HTML code to well-formed XHTML.This class extend the com.tecnick.htmlutils Java package that provides a collection of utilities to create, parse and convert HTML/XHTML documents.
XHTMLTranscoder is a fast transcoder useful to convert HTML code in real-time.
This class do not check headers, it checks only the general rules for tags, attributes and nesting:
- tags (elements) names in lowercase (eg: <ACRONYM> become <acronym>);
- attributes names in lowercase (eg: <acronym TITLE="example"> become <acronym title="example">);
- unquoted attributes (eg: <acronym title=example> become <acronym title="example">);
- elements nesting (eg: <b><i>hello</b></i> become <b><i>hello</i></b>);
- elements termination (eg: <p>hello world ... become <p>hello world ...</p>);
- unminimized attributes (eg: <input type="checkbox" checked /> become <input type="checkbox" checked="checked" />);
- unterminated empty tags (eg: <br> become <br />);
- preserve other languages elements (php, asp, jsp, ...)
Installation instructions
This project is shipped as Eclipse project, with classes compiled into the "classes" directory.
However a packaged version of this class is available as a JAR archive inside the www directory.
To install the JAR file, just copy it on your project classpath.
Implementation Example
The following is a quick start guide that shows you how to use the XHTMLTranscoder:
// 1. include the transcoder package in your project import com.tecnick.htmlutils.xhtmltranscoder.XHTMLTranscoder; // 2. initialize the XHTMLTranscoder constructor XHTMLTranscoder xhtml_transcoder = new XHTMLTranscoder(); // 3. create a dummy HMTML string String html_string = "<B CLASS=test>put<I>here some broken HTML</B></I>"; // 4. transcode the string to XHTML String xhtml_string = XHTMLTranscoder.transcode(html_string); // now the xhtml_string String object contains the following XHTML data: // <b class="test">put<i>here some broken HTML</i></b>

Open Source projects from the same author >>
Powered by CollabNet | Feedback |
FAQ |
Press |
Developer tools
© 1995 - 2007 CollabNet. CollabNet is a registered trademark of CollabNet, Inc. |
![]() ![]() |