diff --git a/ChangeLog b/ChangeLog index c84fd18a..a3bc6c04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Tue Oct 30 13:33:13 CET 2001 Daniel Veillard + + * configure.in: preparing 2.4.7 + * Makefile.am doc/Makefile.am: switched to the latest xmllint + manual page from John + * doc/*: updated the doc and rebuilt the generated pages + Tue Oct 30 11:31:19 CET 2001 Daniel Veillard * xmlIO.c: closing bug #62711, the library should never diff --git a/Makefile.am b/Makefile.am index 36dcce5d..98aea6e2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -34,7 +34,7 @@ endif DEPS = $(top_builddir)/libxml2.la LDADDS = $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm -man_MANS = xmllint.1 xml2-config.1 libxml.4 +man_MANS = xml2-config.1 libxml.4 m4datadir = $(datadir)/aclocal m4data_DATA = libxml.m4 diff --git a/configure.in b/configure.in index 39d36ce5..34b80144 100644 --- a/configure.in +++ b/configure.in @@ -6,7 +6,7 @@ AC_CANONICAL_HOST LIBXML_MAJOR_VERSION=2 LIBXML_MINOR_VERSION=4 -LIBXML_MICRO_VERSION=6 +LIBXML_MICRO_VERSION=7 LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION diff --git a/doc/DOM.html b/doc/DOM.html index 2189d07d..46e4b6d2 100644 --- a/doc/DOM.html +++ b/doc/DOM.html @@ -49,6 +49,7 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Entities or no entities
  • Namespaces
  • Upgrading 1.x code
  • +
  • Thread safety
  • DOM Principles
  • A real example
  • Contributions
  • diff --git a/doc/FAQ.html b/doc/FAQ.html index c14c3d7c..b3022bfa 100644 --- a/doc/FAQ.html +++ b/doc/FAQ.html @@ -49,6 +49,7 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Entities or no entities
  • Namespaces
  • Upgrading 1.x code
  • +
  • Thread safety
  • DOM Principles
  • A real example
  • Contributions
  • diff --git a/doc/Makefile.am b/doc/Makefile.am index 650d0e0e..fb3809eb 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -17,7 +17,7 @@ PAGES= architecture.html bugs.html contribs.html docs.html DOM.html \ interface.html intro.html library.html namespaces.html news.html \ tree.html xmldtd.html XML.html XSLT.html -man_MANS = xmlcatalog.1 +man_MANS = xmllint.1 xmlcatalog.1 all: $(PAGES) diff --git a/doc/XML.html b/doc/XML.html index 5079d978..e2a7d3a4 100644 --- a/doc/XML.html +++ b/doc/XML.html @@ -49,6 +49,7 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Entities or no entities
  • Namespaces
  • Upgrading 1.x code
  • +
  • Thread safety
  • DOM Principles
  • A real example
  • Contributions
  • diff --git a/doc/XSLT.html b/doc/XSLT.html index ecbb0237..41902808 100644 --- a/doc/XSLT.html +++ b/doc/XSLT.html @@ -49,6 +49,7 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Entities or no entities
  • Namespaces
  • Upgrading 1.x code
  • +
  • Thread safety
  • DOM Principles
  • A real example
  • Contributions
  • diff --git a/doc/architecture.html b/doc/architecture.html index 2ebb0330..ed9315aa 100644 --- a/doc/architecture.html +++ b/doc/architecture.html @@ -49,6 +49,7 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Entities or no entities
  • Namespaces
  • Upgrading 1.x code
  • +
  • Thread safety
  • DOM Principles
  • A real example
  • Contributions
  • diff --git a/doc/bugs.html b/doc/bugs.html index 447e318d..f4c92689 100644 --- a/doc/bugs.html +++ b/doc/bugs.html @@ -49,6 +49,7 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Entities or no entities
  • Namespaces
  • Upgrading 1.x code
  • +
  • Thread safety
  • DOM Principles
  • A real example
  • Contributions
  • diff --git a/doc/catalog.html b/doc/catalog.html index 6e98be13..e539bb1f 100644 --- a/doc/catalog.html +++ b/doc/catalog.html @@ -49,6 +49,7 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Entities or no entities
  • Namespaces
  • Upgrading 1.x code
  • +
  • Thread safety
  • DOM Principles
  • A real example
  • Contributions
  • diff --git a/doc/contribs.html b/doc/contribs.html index 174d8366..20d17076 100644 --- a/doc/contribs.html +++ b/doc/contribs.html @@ -49,6 +49,7 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Entities or no entities
  • Namespaces
  • Upgrading 1.x code
  • +
  • Thread safety
  • DOM Principles
  • A real example
  • Contributions
  • diff --git a/doc/docs.html b/doc/docs.html index a736ab6b..998b6f4e 100644 --- a/doc/docs.html +++ b/doc/docs.html @@ -49,6 +49,7 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Entities or no entities
  • Namespaces
  • Upgrading 1.x code
  • +
  • Thread safety
  • DOM Principles
  • A real example
  • Contributions
  • diff --git a/doc/downloads.html b/doc/downloads.html index b5bf2856..d1e5eebd 100644 --- a/doc/downloads.html +++ b/doc/downloads.html @@ -49,6 +49,7 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Entities or no entities
  • Namespaces
  • Upgrading 1.x code
  • +
  • Thread safety
  • DOM Principles
  • A real example
  • Contributions
  • diff --git a/doc/encoding.html b/doc/encoding.html index fcc05a2f..b51261f8 100644 --- a/doc/encoding.html +++ b/doc/encoding.html @@ -49,6 +49,7 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Entities or no entities
  • Namespaces
  • Upgrading 1.x code
  • +
  • Thread safety
  • DOM Principles
  • A real example
  • Contributions
  • diff --git a/doc/entities.html b/doc/entities.html index 7bc72ee5..986857f1 100644 --- a/doc/entities.html +++ b/doc/entities.html @@ -49,6 +49,7 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Entities or no entities
  • Namespaces
  • Upgrading 1.x code
  • +
  • Thread safety
  • DOM Principles
  • A real example
  • Contributions
  • diff --git a/doc/example.html b/doc/example.html index ff49607a..59e6f706 100644 --- a/doc/example.html +++ b/doc/example.html @@ -49,6 +49,7 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Entities or no entities
  • Namespaces
  • Upgrading 1.x code
  • +
  • Thread safety
  • DOM Principles
  • A real example
  • Contributions
  • diff --git a/doc/gnome-xml.sgml b/doc/gnome-xml.sgml index a89de42a..4eb04640 100644 --- a/doc/gnome-xml.sgml +++ b/doc/gnome-xml.sgml @@ -21,6 +21,10 @@ + + + + ]> @@ -96,9 +100,13 @@ &nanoftp; &xmlIO; &catalog; + &threads; + &globals; + &global_functions; &DOCBparser; &parserInternals; &encoding; + &hash; &debugXML; &xmlmemory; diff --git a/doc/help.html b/doc/help.html index 191b2c18..45375025 100644 --- a/doc/help.html +++ b/doc/help.html @@ -49,6 +49,7 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Entities or no entities
  • Namespaces
  • Upgrading 1.x code
  • +
  • Thread safety
  • DOM Principles
  • A real example
  • Contributions
  • diff --git a/doc/html/book1.html b/doc/html/book1.html index f0f78efc..7fbbcbcb 100644 --- a/doc/html/book1.html +++ b/doc/html/book1.html @@ -209,6 +209,16 @@ HREF="libxml-catalog.html" > —
    threads
    globals
    DOCBparser
    hash
    debugXML
    + + + + @@ -427,6 +431,7 @@ + @@ -775,6 +780,8 @@ + + @@ -811,9 +818,21 @@ + + + + + + + + + + + + + - @@ -835,6 +854,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1002,6 +1069,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1013,10 +1107,27 @@ + + + + + + + + + + + + + + + + + diff --git a/doc/html/libxml-catalog.html b/doc/html/libxml-catalog.html index 787702b1..3c141428 100644 --- a/doc/html/libxml-catalog.html +++ b/doc/html/libxml-catalog.html @@ -16,8 +16,8 @@ REL="PREVIOUS" TITLE="xmlIO" HREF="libxml-xmlio.html">

    Name

    Synopsis

    xmlCatalogAllow; +struct xmlCatalog; +typedef xmlCatalogPtr; +xmlCatalogPtr xmlLoadACatalog (const char *filename); +xmlCatalogPtr xmlLoadSGMLSuperCatalog (const char *filename); +int xmlConvertSGMLCatalog (xmlCatalogPtr catal); +int xmlACatalogAdd (xmlCatalogPtr catal, + const xmlChar *type, + const xmlChar *orig, + const xmlChar *replace); +int xmlACatalogRemove (xmlCatalogPtr catal, + const xmlChar *value); +xmlChar* xmlACatalogResolve (xmlCatalogPtr catal, + const xmlChar *pubID, + const xmlChar *sysID); +xmlChar* xmlACatalogResolveSystem (xmlCatalogPtr catal, + const xmlChar *sysID); +xmlChar* xmlACatalogResolvePublic (xmlCatalogPtr catal, + const xmlChar *pubID); +xmlChar* xmlACatalogResolveURI (xmlCatalogPtr catal, + const xmlChar *URI); +void xmlACatalogDump (xmlCatalogPtr catal, + FILE *out); +void xmlFreeCatalog (xmlCatalogPtr catal); void xmlInitializeCatalogxmlLoadCatalog (const char *filename); -int xmlLoadSGMLSuperCatalog (const char *filename); void xmlLoadCatalogs

    Description

    Details





    struct xmlCatalog

    struct xmlCatalog;


    xmlCatalogPtr

    typedef xmlCatalog *xmlCatalogPtr;


    xmlLoadACatalog ()

    xmlCatalogPtr xmlLoadACatalog               (const char *filename);

    Load the catalog and build the associated data structures. +This can be either an XML Catalog or an SGML Catalog +It will recurse in SGML CATALOG entries. On the other hand XML +Catalogs are not handled recursively.

    filename : a file path
    Returns :the catalog parsed or NULL in case of error


    xmlLoadSGMLSuperCatalog ()

    xmlCatalogPtr xmlLoadSGMLSuperCatalog       (const char *filename);

    Load an SGML super catalog. It won't expand CATALOG or DELEGATE +references. This is only needed for manipulating SGML Super Catalogs +like adding and removing CATALOG or DELEGATE entries.

    filename : a file path
    Returns :the catalog parsed or NULL in case of error


    xmlConvertSGMLCatalog ()

    int         xmlConvertSGMLCatalog           (xmlCatalogPtr catal);

    Convert all the SGML catalog entries as XML ones

    catal : the catalog
    Returns :the number of entries converted if successful, -1 otherwise


    xmlACatalogAdd ()

    int         xmlACatalogAdd                  (xmlCatalogPtr catal,
    +                                             const xmlChar *type,
    +                                             const xmlChar *orig,
    +                                             const xmlChar *replace);

    Add an entry in the catalog, it may overwrite existing but +different entries.

    catal : a Catalog
    type : the type of record to add to the catalog
    orig : the system, public or prefix to match
    replace : the replacement value for the match
    Returns :0 if successful, -1 otherwise


    xmlACatalogRemove ()

    int         xmlACatalogRemove               (xmlCatalogPtr catal,
    +                                             const xmlChar *value);

    Remove an entry from the catalog

    catal : a Catalog
    value : the value to remove
    Returns :the number of entries removed if successful, -1 otherwise


    xmlACatalogResolve ()

    xmlChar*    xmlACatalogResolve              (xmlCatalogPtr catal,
    +                                             const xmlChar *pubID,
    +                                             const xmlChar *sysID);

    Do a complete resolution lookup of an External Identifier

    catal : a Catalog
    pubID : the public ID string
    sysID : the system ID string
    Returns :the URI of the resource or NULL if not found, it must be freed +by the caller.


    xmlACatalogResolveSystem ()

    xmlChar*    xmlACatalogResolveSystem        (xmlCatalogPtr catal,
    +                                             const xmlChar *sysID);

    Try to lookup the catalog resource for a system ID

    catal : a Catalog
    sysID : the public ID string
    Returns :the system ID if found or NULL otherwise, the value returned +must be freed by the caller.


    xmlACatalogResolvePublic ()

    xmlChar*    xmlACatalogResolvePublic        (xmlCatalogPtr catal,
    +                                             const xmlChar *pubID);

    Try to lookup the system ID associated to a public ID in that catalog

    catal : a Catalog
    pubID : the public ID string
    Returns :the system ID if found or NULL otherwise, the value returned +must be freed by the caller.


    xmlACatalogResolveURI ()

    xmlChar*    xmlACatalogResolveURI           (xmlCatalogPtr catal,
    +                                             const xmlChar *URI);

    Do a complete resolution lookup of an URI

    catal : a Catalog
    URI : 
    Returns :the URI of the resource or NULL if not found, it must be freed +by the caller.


    xmlACatalogDump ()

    void        xmlACatalogDump                 (xmlCatalogPtr catal,
    +                                             FILE *out);

    Free up all the memory associated with catalogs

    catal : a Catalog
    out : the file.


    xmlFreeCatalog ()

    void        xmlFreeCatalog                  (xmlCatalogPtr catal);

    Free the memory allocated to a Catalog

    catal : a Catalog entry


    Do the catalog initialization. -TODO: this function is not thread safe, catalog initialization should +this function is not thread safe, catalog initialization should preferably be done once at startup


    Load the catalog and makes its definitions effective for the default external entity loader. It will recurse in SGML CATALOG entries. -TODO: this function is not thread safe, catalog initialization should +this function is not thread safe, catalog initialization should preferably be done once at startup


    xmlLoadSGMLSuperCatalog ()

    int         xmlLoadSGMLSuperCatalog         (const char *filename);

    Load an SGML super catalog. It won't expand CATALOG or DELEGATE -references. This is only needed for manipulating SGML Super Catalogs -like adding and removing CATALOG or DELEGATE entries.

    filename : a file path
    Returns :0 in case of success -1 in case of error


    Load the catalogs and makes their definitions effective for the default external entity loader. -TODO: this function is not thread safe, catalog initialization should +this function is not thread safe, catalog initialization should preferably be done once at startup








    Add an entry in the catalog, it may overwrite existing but -different entries.

    xmlInitializeCatalog
    ();














    DOCBparserthreads

    Name

    Synopsis

    xmlDocPtr doc); +void xmlLsOneNode (FILE *output, + xmlNodePtr node); +int xmlLsCountNode (xmlNodePtr node); +const char* xmlBoolToText (int bool); +long xmlGetLineNo (xmlNodePtr node); char* (*xmlShellReadlineFuncxmlNodePtr node2); void xmlShellPrintXPathError (int errorType, + const char *arg); +void xmlShellPrintNode (xmlNodePtr node); +void xmlShellPrintXPathResult (xmlXPathObjectPtr list); +int xmlShellList (xmlShellCtxtPtr ctxt, + char *arg, + xmlNodePtr node, + xmlNodePtr node2); +int xmlShellBase (xmlShellCtxtPtr ctxt, + char *arg, + xmlNodePtr node, + xmlNodePtr node2); +int xmlShellDir (xmlShellCtxtPtr ctxt, + char *arg, + xmlNodePtr node, + xmlNodePtr node2); +int xmlShellCat (xmlShellCtxtPtr ctxt, + char *arg, + xmlNodePtr node, + xmlNodePtr node2); +int xmlShellLoad (xmlShellCtxtPtr ctxt, + char *filename, + xmlNodePtr node, + xmlNodePtr node2); +int xmlShellWrite (xmlShellCtxtPtr ctxt, + char *filename, + xmlNodePtr node, + xmlNodePtr node2); +int xmlShellSave (xmlShellCtxtPtr ctxt, + char *filename, + xmlNodePtr node, + xmlNodePtr node2); +int xmlShellValidate (xmlShellCtxtPtr ctxt, + char *dtd, + xmlNodePtr node, + xmlNodePtr node2); +int xmlShellDu (xmlShellCtxtPtr ctxt, + char *arg, + xmlNodePtr tree, + xmlNodePtr node2); +int xmlShellPwd (xmlShellCtxtPtr ctxt, + char *buffer, + xmlNodePtr node, + xmlNodePtr node2); +void xmlShell (

    Description

    Details











    xmlLsOneNode ()

    void        xmlLsOneNode                    (FILE *output,
    +                                             xmlNodePtr node);

    output : 
    node : 


    xmlLsCountNode ()

    int         xmlLsCountNode                  (xmlNodePtr node);

    node : 
    Returns : 


    xmlBoolToText ()

    const char* xmlBoolToText                   (int bool);

    Convenient way to turn bool into text

    bool : a bool to turn into text
    Returns : 


    xmlGetLineNo ()

    long        xmlGetLineNo                    (xmlNodePtr node);

    Get line number of node

    node : valid node
    Returns :the line number if sucessfull, -1 otherwise






    xmlShellPrintXPathError ()

    void        xmlShellPrintXPathError         (int errorType,
    +                                             const char *arg);

    errorType : 
    arg : 


    xmlShellPrintNode ()

    void        xmlShellPrintNode               (xmlNodePtr node);

    Print node to stdout

    node : a non-null node to print to stdout


    xmlShellPrintXPathResult ()

    void        xmlShellPrintXPathResult        (xmlXPathObjectPtr list);

    Prints result to stdout

    list : 


    xmlShellList ()

    int         xmlShellList                    (xmlShellCtxtPtr ctxt,
    +                                             char *arg,
    +                                             xmlNodePtr node,
    +                                             xmlNodePtr node2);

    Implements the XML shell function "ls" +Does an Unix like listing of the given node (like a directory)

    ctxt : the shell context
    arg : unused
    node : a node
    node2 : unused
    Returns :0


    xmlShellBase ()

    int         xmlShellBase                    (xmlShellCtxtPtr ctxt,
    +                                             char *arg,
    +                                             xmlNodePtr node,
    +                                             xmlNodePtr node2);

    Implements the XML shell function "base" +dumps the current XML base of the node

    ctxt : the shell context
    arg : unused
    node : a node
    node2 : unused
    Returns :0


    xmlShellDir ()

    int         xmlShellDir                     (xmlShellCtxtPtr ctxt,
    +                                             char *arg,
    +                                             xmlNodePtr node,
    +                                             xmlNodePtr node2);

    Implements the XML shell function "dir" +dumps informations about the node (namespace, attributes, content).

    ctxt : the shell context
    arg : unused
    node : a node
    node2 : unused
    Returns :0


    xmlShellCat ()

    int         xmlShellCat                     (xmlShellCtxtPtr ctxt,
    +                                             char *arg,
    +                                             xmlNodePtr node,
    +                                             xmlNodePtr node2);

    Implements the XML shell function "cat" +dumps the serialization node content (XML or HTML).

    ctxt : the shell context
    arg : unused
    node : a node
    node2 : unused
    Returns :0


    xmlShellLoad ()

    int         xmlShellLoad                    (xmlShellCtxtPtr ctxt,
    +                                             char *filename,
    +                                             xmlNodePtr node,
    +                                             xmlNodePtr node2);

    Implements the XML shell function "load" +loads a new document specified by the filename

    ctxt : the shell context
    filename : the file name
    node : unused
    node2 : unused
    Returns :0 or -1 if loading failed


    xmlShellWrite ()

    int         xmlShellWrite                   (xmlShellCtxtPtr ctxt,
    +                                             char *filename,
    +                                             xmlNodePtr node,
    +                                             xmlNodePtr node2);

    Implements the XML shell function "write" +Write the current node to the filename, it saves the serailization +of the subtree under the node specified

    ctxt : the shell context
    filename : the file name
    node : a node in the tree
    node2 : unused
    Returns :0 or -1 in case of error


    xmlShellSave ()

    int         xmlShellSave                    (xmlShellCtxtPtr ctxt,
    +                                             char *filename,
    +                                             xmlNodePtr node,
    +                                             xmlNodePtr node2);

    Implements the XML shell function "save" +Write the current document to the filename, or it's original name

    ctxt : the shell context
    filename : the file name (optionnal)
    node : unused
    node2 : unused
    Returns :0 or -1 in case of error


    xmlShellValidate ()

    int         xmlShellValidate                (xmlShellCtxtPtr ctxt,
    +                                             char *dtd,
    +                                             xmlNodePtr node,
    +                                             xmlNodePtr node2);

    Implements the XML shell function "validate" +Validate the document, if a DTD path is provided, then the validation +is done against the given DTD.

    ctxt : the shell context
    dtd : the DTD URI (optionnal)
    node : unused
    node2 : unused
    Returns :0 or -1 in case of error


    xmlShellDu ()

    int         xmlShellDu                      (xmlShellCtxtPtr ctxt,
    +                                             char *arg,
    +                                             xmlNodePtr tree,
    +                                             xmlNodePtr node2);

    Implements the XML shell function "du" +show the structure of the subtree under node tree +If tree is null, the command works on the current node.

    ctxt : the shell context
    arg : unused
    tree : a node defining a subtree
    node2 : unused
    Returns :0 or -1 in case of error


    xmlShellPwd ()

    int         xmlShellPwd                     (xmlShellCtxtPtr ctxt,
    +                                             char *buffer,
    +                                             xmlNodePtr node,
    +                                             xmlNodePtr node2);

    Implements the XML shell function "pwd" +Show the full path from the root to the node, if needed building +thumblers when similar elements exists at a given ancestor level. +The output is compatible with XPath commands.

    ctxt : the shell context
    buffer : the output buffer
    node : 
    node2 : unused
    Returns :0 or -1 in case of error


    encodinghash

    Name

    Synopsis

    Description

    Details



















    catalogglobals

    Name

    Synopsis

    Description

    Details






























    debugXMLhash

    Name

    Synopsis

    Description

    Details




















    Name

    Synopsis

    Description

    Details
































    Name

    Synopsis

    Description

    Details

















    threads
    globals
    DOCBparser
    hash
    debugXML
    This section contains the API reference for libxml. All the public interfaces are documented here. This reference guide is build by extracting comments from the code sources.

    _functions; +