All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ccil.cowan.tagsoup.HTMLModels Maven / Gradle / Ivy

Go to download

TagSoup is a SAX-compliant parser written in Java that, instead of parsing well-formed or valid XML, parses HTML as it is found in the wild: poor, nasty and brutish, though quite often far from short. TagSoup is designed for people who have to process this stuff using some semblance of a rational application design. By providing a SAX interface, it allows standard XML tools to be applied to even the worst HTML. TagSoup also includes a command-line processor that reads HTML files and can generate either clean HTML or well-formed XML that is a close approximation to XHTML.

The newest version!
// This file is part of TagSoup and is Copyright 2002-2008 by John Cowan.
//
// TagSoup is licensed under the Apache License,
// Version 2.0.  You may obtain a copy of this license at
// http://www.apache.org/licenses/LICENSE-2.0 .  You may also have
// additional legal rights not granted by this license.
//
// TagSoup is distributed in the hope that it will be useful, but
// unless required by applicable law or agreed to in writing, TagSoup
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
// OF ANY KIND, either express or implied; not even the implied warranty
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// 
// 
// Defines models for HTMLSchema

/**
This interface contains generated constants representing HTML content
models.  Logically, it is part of HTMLSchema, but it is more
convenient to generate the constants into a separate interface.
*/

package org.ccil.cowan.tagsoup;
public interface HTMLModels {

	// Start of model definitions
		public static final int M_AREA = 1 << 1;
	public static final int M_BLOCK = 1 << 2;
	public static final int M_BLOCKINLINE = 1 << 3;
	public static final int M_BODY = 1 << 4;
	public static final int M_CELL = 1 << 5;
	public static final int M_COL = 1 << 6;
	public static final int M_DEF = 1 << 7;
	public static final int M_FORM = 1 << 8;
	public static final int M_FRAME = 1 << 9;
	public static final int M_HEAD = 1 << 10;
	public static final int M_HTML = 1 << 11;
	public static final int M_INLINE = 1 << 12;
	public static final int M_LEGEND = 1 << 13;
	public static final int M_LI = 1 << 14;
	public static final int M_NOLINK = 1 << 15;
	public static final int M_OPTION = 1 << 16;
	public static final int M_OPTIONS = 1 << 17;
	public static final int M_P = 1 << 18;
	public static final int M_PARAM = 1 << 19;
	public static final int M_TABLE = 1 << 20;
	public static final int M_TABULAR = 1 << 21;
	public static final int M_TR = 1 << 22;


	// End of model definitions

	}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy