expat.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
  2. "http://www.w3.org/TR/REC-html40/loose.dtd">
  3. <HTML>
  4. <TITLE>expat</TITLE>
  5. <BODY>
  6. <H1>expat - XML Parser Toolkit</H1>
  7. <p>This is outdated stuff from the independently developed Expat which
  8. was forked in 2001 to make the Xmlrpc-c embedded version.
  9. <H3>Version 1.2</H3>
  10. <P>Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center
  11. Ltd. Expat is freely available with source under a very liberal <a
  12. href="copying.txt">license</a> (the MIT license).</P>
  13. <P>This is a production version of expat. Relative to expat 1.1, it
  14. adds support for parsing external DTDs and parameter entities.
  15. Compiling with -DXML_DTD enables this support. There's a new
  16. <CODE>-p</CODE> option for xmlwf which will cause it to process
  17. external DTDs and parameter entities; this implies the <CODE>-x</CODE>
  18. option. See the comment above <CODE>XML_SetParamEntityParsing</CODE>
  19. in <CODE>xmlparse.h</CODE> for the API addition that enables this.</P>
  20. <p>For Xmlrpc-c, we find no reason to exclude this function from the
  21. library, and ifdefs make code harder to maintain, so we include the
  22. function unconditionally. (i.e. -DXML_DTD does nothing).
  23. <P>Expat is an <A
  24. HREF="http://www.w3.org/TR/1998/REC-xml-19980210">XML 1.0</A> parser
  25. written in C. It aims to be fully conforming. It is currently not a
  26. validating XML processor. The current production version of expat 1.X
  27. can be downloaded from <A href =
  28. "ftp://ftp.jclark.com/pub/xml/expat.zip"
  29. >ftp://ftp.jclark.com/pub/xml/expat.zip</A>.</P>
  30. <P>Development of expat 2.0 is being handled by a team led by Clark
  31. Cooper, hosted by <A
  32. href="http://www.sourceforge.net">sourceforge.net</A>. See <A href=
  33. "http://expat.sourceforge.net">http://expat.sourceforge.net</A> for
  34. the latest on expat 2.0.</P>
  35. <P>The directory <SAMP>xmltok</SAMP> contains a low-level library for
  36. tokenizing XML. The interface is documented in
  37. <SAMP>xmltok/xmltok.h</SAMP>.</P>
  38. <P>The directory <SAMP>xmlparse</SAMP> contains an XML parser library
  39. which is built on top of the <SAMP>xmltok</SAMP> library. The
  40. interface is documented in <SAMP>xmlparse/xmlparse.h</SAMP>. The
  41. directory <SAMP>sample</SAMP> contains a simple example program using
  42. this interface; <SAMP>sample/build.bat</SAMP> is a batch file to build
  43. the example using Visual C++.</P>
  44. <P>The directory <SAMP>xmlwf</SAMP> contains the <SAMP>xmlwf</SAMP>
  45. application, which uses the <SAMP>xmlparse</SAMP> library. The
  46. arguments to <SAMP>xmlwf</SAMP> are one or more files which are each
  47. to be checked for well-formedness. An option <SAMP>-d
  48. <VAR>dir</VAR></SAMP> can be specified; for each well-formed input
  49. file the corresponding <A
  50. href="http://www.jclark.com/xml/canonxml.html">canonical XML</A> will
  51. be written to <SAMP>dir/<VAR>f</VAR></SAMP>, where
  52. <SAMP><VAR>f</VAR></SAMP> is the filename (without any path) of the
  53. input file. A <CODE>-x</CODE> option will cause references to
  54. external general entities to be processed. A <CODE>-s</CODE> option
  55. will make documents that are not standalone cause an error (a document
  56. is considered standalone if either it is intrinsically standalone
  57. because it has no external subset and no references to parameter
  58. entities in the internal subset or it is declared as standalone in the
  59. XML declaration).</P>
  60. <P>The <SAMP>bin</SAMP> directory contains Win32 executables. The
  61. <SAMP>lib</SAMP> directory contains Win32 import libraries.</P>
  62. <P>Answers to some frequently asked questions about expat can be found
  63. in the <A
  64. HREF="http://www.jclark.com/xml/expatfaq.html">expat
  65. FAQ</A>.</P>
  66. <P></P>
  67. <ADDRESS>
  68. <A HREF="mailto:jjc@jclark.com">James Clark</A>
  69. </ADDRESS>
  70. </BODY>
  71. </HTML>