Class xmlpipe
java.lang.Object
|
+----xmlpipe
- public final class xmlpipe
- extends Object
A program that parses an XML document and writes out the
result in a format similar to nsgmls. Every line of the output
corresponds to an event in the parser: start tag, attribute, PI,
comment, data,... The first character of the line indicates the
event.
- (name
- Start of an element called `name' (name is in lowercase)
- )name
- End of an element called `name'
- Aname value
- An attribute called `name' (lowercase) with value `value'.
Attribute precede the start tag to which they belong.
Any newlines, tabs and backslashes in the value are replaced
by \n, \t and \\.
- -text
- Character data. Any newlines, tabs and backslashes are
encoded as \n, \t and \\.
- ?text
- A processing instruction (other than a <?xml...?> one, which
is handled by the parser). Newlines, tabs and backslashes are encoded.
- *text
- A comment.
- {name url
- {name
- Start of a <!doctype, either with or without an external ID (url)
- }name
- End of a doctype.
- C
- (Only at the end of the output.) Indicates that the parser
didn't notice any errors in the document.
- Version:
- $Id: xmlpipe.html,v 1.8 1997/06/09 22:27:06 bbos Exp $
- Author:
- Bert Bos
-
xmlpipe()
-
-
main(String[])
-
xmlpipe
public xmlpipe()
main
public static void main(String argv[]) throws IOException, UnknownEncoding