You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
mxml/www/docfiles/TheBasics1.html

53 lines
2.3 KiB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>Mini-XML Programmers Manual, Version 2.2.1</TITLE>
<META NAME="author" CONTENT="Michael Sweet">
<META NAME="copyright" CONTENT="Copyright 2003-2005">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
<LINK REL="Start" HREF="index.html">
<LINK REL="Contents" HREF="toc.html">
<LINK REL="Prev" HREF="4UsingthemxmldocUtility.html">
<LINK REL="Next" HREF="CodeDocumentationConventions.html">
<STYLE TYPE="text/css"><!--
BODY { font-family: serif }
H1 { font-family: sans-serif }
H2 { font-family: sans-serif }
H3 { font-family: sans-serif }
H4 { font-family: sans-serif }
H5 { font-family: sans-serif }
H6 { font-family: sans-serif }
SUB { font-size: smaller }
SUP { font-size: smaller }
PRE { font-family: monospace }
--></STYLE>
</HEAD>
<BODY>
<A HREF="toc.html">Contents</A>
<A HREF="4UsingthemxmldocUtility.html">Previous</A>
<A HREF="CodeDocumentationConventions.html">Next</A>
<HR NOSHADE>
<H2><A NAME="5_1">The Basics</A></H2>
<P>The <TT>mxmldoc</TT> utility scans C and C++ source and header files
and produces an XML file describing the library interface and an XHTML
file providing a human-readable reference to the code. Each source and
header file must conform to some simple code commenting conventions so
that <TT>mxmldoc</TT> can extract the necessary descriptive text.</P>
<P>The <TT>mxmldoc</TT> command requires the name of an XML file to
store the code information; this file is created and updated as
necessary. The XML file is optionally followed by a list of source
files to scan. After scanning any source files on the command-line, <TT>
mxmldoc</TT> writes XHTML documentation to the standard output, which
can be redirected to the file using the <KBD>&gt;filename</KBD> syntax:</P>
<PRE>
<KBD>mxmldoc myfile.xml &gt;myfile.html ENTER</KBD>
<KBD>mxmldoc myfile.xml file1.c file2.cxx file3.h &gt;myfile.html ENTER</KBD>
</PRE>
<P>If no source files are provided on the command-line, the current
contents of the XML file are converted to XHTML.</P>
<HR NOSHADE>
<A HREF="toc.html">Contents</A>
<A HREF="4UsingthemxmldocUtility.html">Previous</A>
<A HREF="CodeDocumentationConventions.html">Next</A>
</BODY>
</HTML>