public class DTDParser extends Object
Modifier and Type | Method and Description |
---|---|
static TemplateThing[] |
extractTemplate(String path)
Extracts the template by reading the ELEMENT and ATTLIST tags from a .dtd file or the DOCTYPE of an .xml file.
|
static void |
main(String[] args) |
static TemplateThing[] |
parseDTD(StringBuilder data)
Parses a chunk of text into a hierarchy of TemplateThing instances, the roots of which are in the returned array.
|
static TemplateThing[] |
parseDTDFile(String dtd_path)
Parses the tags of a .dtd file.
|
static TemplateThing[] |
parseXMLFile(String xml_path)
Parses a !DOCTYPE chunk from an .xml file, if any.
|
public static TemplateThing[] extractTemplate(String path) throws Exception
Exception
public static TemplateThing[] parseDTDFile(String dtd_path) throws Exception
Exception
public static TemplateThing[] parseXMLFile(String xml_path) throws Exception
Exception
public static TemplateThing[] parseDTD(StringBuilder data) throws Exception
Exception
public static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.