2 * ----------------------------------------------------------------------
3 * PXP: The polymorphic XML parser for Objective Caml.
4 * Copyright by Gerd Stolpmann. See LICENSE for details.
11 val write_document : out_channel -> 'ext document -> unit
12 (* Writes O'Caml code to the out_channel that is a top-level function
13 * creating a fresh document which is equal to the passed document:
15 * "let create_document warner spec = ...;;"
17 * If you compile the code and call "create_document warner map" the
18 * function creates a document tree which is (almost) equal to the
21 * The following properties may not be equal:
23 * - Whether a declaration occurs in an external entity or not
25 * 'warner': a collect_warnings object
26 * 'spec': a Pxp_document.spec
30 val write_dtd : out_channel -> dtd -> unit
31 (* Writes O'Caml code to the out_channel that is a top-level function
32 * creating a fresh DTD which is equal to the passed DTD:
34 * "let create_dtd warner = ...;;"
36 * If you compile the code and call "create_dtd warner" the
37 * function creates a DTD object which is (almost) equal to the
40 * The following properties may not be equal:
42 * - Whether a declaration occurs in an external entity or not
44 * 'warner': a collect_warnings object
47 val write_subtree : out_channel -> 'ext node -> unit
48 (* Writes O'Caml code to the out_channel that is a top-level function
49 * creating a fresh node tree which is equal to the passed tree:
51 * "let create_subtree dtd map = ...;;"
53 * If you compile the code and call "create_subtree dtd map" the
54 * function creates a DTD object which is equal to the passed object.
63 (* ======================================================================
67 * Revision 1.1 2000/11/17 09:57:29 lpadovan
70 * Revision 1.2 2000/07/09 00:30:14 gerd
73 * Revision 1.1 2000/05/29 23:48:38 gerd
74 * Changed module names:
75 * Markup_aux into Pxp_aux
76 * Markup_codewriter into Pxp_codewriter
77 * Markup_document into Pxp_document
78 * Markup_dtd into Pxp_dtd
79 * Markup_entity into Pxp_entity
80 * Markup_lexer_types into Pxp_lexer_types
81 * Markup_reader into Pxp_reader
82 * Markup_types into Pxp_types
83 * Markup_yacc into Pxp_yacc
84 * See directory "compatibility" for (almost) compatible wrappers emulating
85 * Markup_document, Markup_dtd, Markup_reader, Markup_types, and Markup_yacc.
87 * ======================================================================
88 * Old logs from markup_codewriter.mli:
90 * Revision 1.1 2000/03/11 22:57:28 gerd