| OLD | NEW |
| 1 | 1 |
| 2 Expat, Release 2.0.1 | 2 Expat, Release 2.1.0 |
| 3 | 3 |
| 4 This is Expat, a C library for parsing XML, written by James Clark. | 4 This is Expat, a C library for parsing XML, written by James Clark. |
| 5 Expat is a stream-oriented XML parser. This means that you register | 5 Expat is a stream-oriented XML parser. This means that you register |
| 6 handlers with the parser before starting the parse. These handlers | 6 handlers with the parser before starting the parse. These handlers |
| 7 are called when the parser discovers the associated structures in the | 7 are called when the parser discovers the associated structures in the |
| 8 document being parsed. A start tag is an example of the kind of | 8 document being parsed. A start tag is an example of the kind of |
| 9 structures for which you may register handlers. | 9 structures for which you may register handlers. |
| 10 | 10 |
| 11 Windows users should use the expat_win32bin package, which includes | 11 Windows users should use the expat_win32bin package, which includes |
| 12 both precompiled libraries and executables, and source code for | 12 both precompiled libraries and executables, and source code for |
| 13 developers. | 13 developers. |
| 14 | 14 |
| 15 Expat is free software. You may copy, distribute, and modify it under | 15 Expat is free software. You may copy, distribute, and modify it under |
| 16 the terms of the License contained in the file COPYING distributed | 16 the terms of the License contained in the file COPYING distributed |
| 17 with this package. This license is the same as the MIT/X Consortium | 17 with this package. This license is the same as the MIT/X Consortium |
| 18 license. | 18 license. |
| 19 | 19 |
| 20 Versions of Expat that have an odd minor version (the middle number in | 20 Versions of Expat that have an odd minor version (the middle number in |
| 21 the release above), are development releases and should be considered | 21 the release above), are development releases and should be considered |
| 22 as beta software. Releases with even minor version numbers are | 22 as beta software. Releases with even minor version numbers are |
| 23 intended to be production grade software. | 23 intended to be production grade software. |
| 24 | 24 |
| 25 If you are building Expat from a check-out from the CVS repository, | 25 If you are building Expat from a check-out from the CVS repository, |
| 26 you need to run a script that generates the configure script using the | 26 you need to run a script that generates the configure script using the |
| 27 GNU autoconf and libtool tools. To do this, you need to have | 27 GNU autoconf and libtool tools. To do this, you need to have |
| 28 autoconf 2.52 or newer and libtool 1.4 or newer (1.5 or newer preferred). | 28 autoconf 2.58 or newer. Run the script like this: |
| 29 Run the script like this: | |
| 30 | 29 |
| 31 ./buildconf.sh | 30 ./buildconf.sh |
| 32 | 31 |
| 33 Once this has been done, follow the same instructions as for building | 32 Once this has been done, follow the same instructions as for building |
| 34 from a source distribution. | 33 from a source distribution. |
| 35 | 34 |
| 36 To build Expat from a source distribution, you first run the | 35 To build Expat from a source distribution, you first run the |
| 37 configuration shell script in the top level distribution directory: | 36 configuration shell script in the top level distribution directory: |
| 38 | 37 |
| 39 ./configure | 38 ./configure |
| (...skipping 18 matching lines...) Expand all Loading... |
| 58 and is therefore not recommended for general use - e.g. as part of | 57 and is therefore not recommended for general use - e.g. as part of |
| 59 a Linux distribution - but rather for builds with special requirements. | 58 a Linux distribution - but rather for builds with special requirements. |
| 60 | 59 |
| 61 After running the configure script, the "make" command will build | 60 After running the configure script, the "make" command will build |
| 62 things and "make install" will install things into their proper | 61 things and "make install" will install things into their proper |
| 63 location. Have a look at the "Makefile" to learn about additional | 62 location. Have a look at the "Makefile" to learn about additional |
| 64 "make" options. Note that you need to have write permission into | 63 "make" options. Note that you need to have write permission into |
| 65 the directories into which things will be installed. | 64 the directories into which things will be installed. |
| 66 | 65 |
| 67 If you are interested in building Expat to provide document | 66 If you are interested in building Expat to provide document |
| 68 information in UTF-16 rather than the default UTF-8, follow these | 67 information in UTF-16 encoding rather than the default UTF-8, follow |
| 69 instructions (after having run "make distclean"): | 68 these instructions (after having run "make distclean"): |
| 70 | 69 |
| 71 1. For UTF-16 output as unsigned short (and version/error | 70 1. For UTF-16 output as unsigned short (and version/error |
| 72 strings as char), run: | 71 strings as char), run: |
| 73 | 72 |
| 74 ./configure CPPFLAGS=-DXML_UNICODE | 73 ./configure CPPFLAGS=-DXML_UNICODE |
| 75 | 74 |
| 76 For UTF-16 output as wchar_t (incl. version/error strings), | 75 For UTF-16 output as wchar_t (incl. version/error strings), |
| 77 run: | 76 run: |
| 78 | 77 |
| 79 ./configure CFLAGS="-g -O2 -fshort-wchar" \ | 78 ./configure CFLAGS="-g -O2 -fshort-wchar" \ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 99 value for DESTDIR, and the rest of the make file using only DESTDIR. | 98 value for DESTDIR, and the rest of the make file using only DESTDIR. |
| 100 It works as follows: | 99 It works as follows: |
| 101 $ make install DESTDIR=/path/to/image | 100 $ make install DESTDIR=/path/to/image |
| 102 overrides the in-makefile set DESTDIR, while both | 101 overrides the in-makefile set DESTDIR, while both |
| 103 $ INSTALL_ROOT=/path/to/image make install | 102 $ INSTALL_ROOT=/path/to/image make install |
| 104 $ make install INSTALL_ROOT=/path/to/image | 103 $ make install INSTALL_ROOT=/path/to/image |
| 105 use DESTDIR=$(INSTALL_ROOT), even if DESTDIR eventually is defined in the | 104 use DESTDIR=$(INSTALL_ROOT), even if DESTDIR eventually is defined in the |
| 106 environment, because variable-setting priority is | 105 environment, because variable-setting priority is |
| 107 1) commandline | 106 1) commandline |
| 108 2) in-makefile | 107 2) in-makefile |
| 109 3) environment | 108 3) environment |
| 109 |
| 110 Note: This only applies to the Expat library itself, building UTF-16 versions |
| 111 of xmlwf and the tests is currently not supported. |
| 110 | 112 |
| 111 Note for Solaris users: The "ar" command is usually located in | 113 Note for Solaris users: The "ar" command is usually located in |
| 112 "/usr/ccs/bin", which is not in the default PATH. You will need to | 114 "/usr/ccs/bin", which is not in the default PATH. You will need to |
| 113 add this to your path for the "make" command, and probably also switch | 115 add this to your path for the "make" command, and probably also switch |
| 114 to GNU make (the "make" found in /usr/ccs/bin does not seem to work | 116 to GNU make (the "make" found in /usr/ccs/bin does not seem to work |
| 115 properly -- appearantly it does not understand .PHONY directives). If | 117 properly -- appearantly it does not understand .PHONY directives). If |
| 116 you're using ksh or bash, use this command to build: | 118 you're using ksh or bash, use this command to build: |
| 117 | 119 |
| 118 PATH=/usr/ccs/bin:$PATH make | 120 PATH=/usr/ccs/bin:$PATH make |
| 119 | 121 |
| 120 When using Expat with a project using autoconf for configuration, you | 122 When using Expat with a project using autoconf for configuration, you |
| 121 can use the probing macro in conftools/expat.m4 to determine how to | 123 can use the probing macro in conftools/expat.m4 to determine how to |
| 122 include Expat. See the comments at the top of that file for more | 124 include Expat. See the comments at the top of that file for more |
| 123 information. | 125 information. |
| 124 | 126 |
| 125 A reference manual is available in the file doc/reference.html in this | 127 A reference manual is available in the file doc/reference.html in this |
| 126 distribution. | 128 distribution. |
| 127 | 129 |
| 128 The homepage for this project is http://www.libexpat.org/. There | 130 The homepage for this project is http://www.libexpat.org/. There |
| 129 are links there to connect you to the bug reports page. If you need | 131 are links there to connect you to the bug reports page. If you need |
| 130 to report a bug when you don't have access to a browser, you may also | 132 to report a bug when you don't have access to a browser, you may also |
| 131 send a bug report by email to expat-bugs@mail.libexpat.org. | 133 send a bug report by email to expat-bugs@mail.libexpat.org. |
| 132 | 134 |
| 133 Discussion related to the direction of future expat development takes | 135 Discussion related to the direction of future expat development takes |
| 134 place on expat-discuss@mail.libexpat.org. Archives of this list and | 136 place on expat-discuss@mail.libexpat.org. Archives of this list and |
| 135 other Expat-related lists may be found at: | 137 other Expat-related lists may be found at: |
| 136 | 138 |
| 137 http://mail.libexpat.org/mailman/listinfo/ | 139 http://mail.libexpat.org/mailman/listinfo/ |
| OLD | NEW |