symbian-qemu-0.9.1-12/expat-2.0.0/README
changeset 1 2fb8b9db1c86
equal deleted inserted replaced
0:ffa851df0825 1:2fb8b9db1c86
       
     1 
       
     2                         Expat, Release 2.0.0
       
     3 
       
     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
       
     6 handlers with the parser before starting the parse.  These handlers
       
     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
       
     9 structures for which you may register handlers.
       
    10 
       
    11 Windows users should use the expat_win32bin package, which includes
       
    12 both precompiled libraries and executables, and source code for
       
    13 developers.
       
    14 
       
    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
       
    17 with this package.  This license is the same as the MIT/X Consortium
       
    18 license.
       
    19 
       
    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
       
    22 as beta software.  Releases with even minor version numbers are
       
    23 intended to be production grade software.
       
    24 
       
    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
       
    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.  Run the script like
       
    29 this:
       
    30 
       
    31         ./buildconf.sh
       
    32 
       
    33 Once this has been done, follow the same instructions as for building
       
    34 from a source distribution.
       
    35 
       
    36 To build Expat from a source distribution, you first run the
       
    37 configuration shell script in the top level distribution directory:
       
    38 
       
    39         ./configure
       
    40 
       
    41 There are many options which you may provide to configure (which you
       
    42 can discover by running configure with the --help option).  But the
       
    43 one of most interest is the one that sets the installation directory.
       
    44 By default, the configure script will set things up to install
       
    45 libexpat into /usr/local/lib, expat.h into /usr/local/include, and
       
    46 xmlwf into /usr/local/bin.  If, for example, you'd prefer to install
       
    47 into /home/me/mystuff/lib, /home/me/mystuff/include, and
       
    48 /home/me/mystuff/bin, you can tell configure about that with:
       
    49 
       
    50         ./configure --prefix=/home/me/mystuff
       
    51         
       
    52 Another interesting option is to enable 64-bit integer support for
       
    53 line and column numbers and the over-all byte index:
       
    54 
       
    55         ./configure CPPFLAGS=-DXML_LARGE_SIZE
       
    56 
       
    57 After running the configure script, the "make" command will build
       
    58 things and "make install" will install things into their proper
       
    59 location.  Have a look at the "Makefile" to learn about additional
       
    60 "make" options.  Note that you need to have write permission into
       
    61 the directories into which things will be installed.
       
    62 
       
    63 If you are interested in building Expat to provide document
       
    64 information in UTF-16 rather than the default UTF-8, follow these
       
    65 instructions:
       
    66 
       
    67         1. For UTF-16 output as unsigned short (and version/error
       
    68            strings as char), run:
       
    69 
       
    70                ./configure CPPFLAGS=-DXML_UNICODE
       
    71 
       
    72            For UTF-16 output as wchar_t (incl. version/error strings),
       
    73            run:
       
    74 
       
    75                ./configure CFLAGS="-g -O2 -fshort-wchar" \
       
    76                            CPPFLAGS=-DXML_UNICODE_WCHAR_T
       
    77 
       
    78         2. Edit the MakeFile, changing:
       
    79 
       
    80                LIBRARY = libexpat.la
       
    81 
       
    82            to:
       
    83 
       
    84                LIBRARY = libexpatw.la
       
    85 
       
    86            (Note the additional "w" in the library name.)
       
    87 
       
    88         3. Run "make buildlib" (which builds the library only).
       
    89 
       
    90         4. Run "make installlib" (which installs the library only).
       
    91 
       
    92 Note for Solaris users:  The "ar" command is usually located in
       
    93 "/usr/ccs/bin", which is not in the default PATH.  You will need to
       
    94 add this to your path for the "make" command, and probably also switch
       
    95 to GNU make (the "make" found in /usr/ccs/bin does not seem to work
       
    96 properly -- appearantly it does not understand .PHONY directives).  If
       
    97 you're using ksh or bash, use this command to build:
       
    98 
       
    99         PATH=/usr/ccs/bin:$PATH make
       
   100 
       
   101 When using Expat with a project using autoconf for configuration, you
       
   102 can use the probing macro in conftools/expat.m4 to determine how to
       
   103 include Expat.  See the comments at the top of that file for more
       
   104 information.
       
   105 
       
   106 A reference manual is available in the file doc/reference.html in this
       
   107 distribution.
       
   108 
       
   109 The homepage for this project is http://www.libexpat.org/.  There
       
   110 are links there to connect you to the bug reports page.  If you need
       
   111 to report a bug when you don't have access to a browser, you may also
       
   112 send a bug report by email to expat-bugs@mail.libexpat.org.
       
   113 
       
   114 Discussion related to the direction of future expat development takes
       
   115 place on expat-discuss@mail.libexpat.org.  Archives of this list and
       
   116 other Expat-related lists may be found at:
       
   117 
       
   118         http://mail.libexpat.org/mailman/listinfo/