Concept Framework 2.2 documentation Contents | Index

standard.lib.xml

Static library name Version Deprecated
standard.lib.xml version 1.0 no

Import library : standard.lib.xml
(you must include this at the top of your source: "import standard.lib.xml" (no quotes)


Description:
XML low level library based on libxml2.
Is recommeded the usage of XMLDocument and XMLNode instead of low-level functions.

Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), it is free software available under the MIT License. XML itself is a metalanguage to design markup languages, i.e. text language where semantic and structure are added to the content using extra "markup" information enclosed between angle brackets. HTML is the most well-known markup language. Though the library is written in C a variety of language bindings make it available in other environments.
Libxml2 is known to be very portable, the library should build and work without serious troubles on a variety of systems (Linux, Unix, Windows, CygWin, MacOS, MacOS X, RISC Os, OS/2, VMS, QNX, MVS, ...)
Libxml2 implements a number of existing standards related to markup languages:
· the XML standard: http://www.w3.org/TR/REC-xml
· Namespaces in XML: http://www.w3.org/TR/REC-xml-names/
· XML Base: http://www.w3.org/TR/xmlbase/
· RFC 2396 : Uniform Resource Identifiers http://www.ietf.org/rfc/rfc2396.txt
· XML Path Language (XPath) 1.0: http://www.w3.org/TR/xpath
· HTML4 parser: http://www.w3.org/TR/html401/
· XML Pointer Language (XPointer) Version 1.0: http://www.w3.org/TR/xptr
· XML Inclusions (XInclude) Version 1.0: http://www.w3.org/TR/xinclude/
· ISO-8859-x encodings, as well as rfc2044 [UTF-8] and rfc2781 [UTF-16] Unicode encodings, and more if using iconv support
· part of SGML Open Technical Resolution TR9401:1997
· XML Catalogs Working Draft 06 August 2001: http://www.oasis-open.org/committees/entity/spec-2001-08-06.html
· Canonical XML Version 1.0: http://www.w3.org/TR/xml-c14n and the Exclusive XML Canonicalization CR draft http://www.w3.org/TR/xml-exc-c14n
· Relax NG, ISO/IEC 19757-2:2003, http://www.oasis-open.org/committees/relax-ng/spec-20011203.html
· W3C XML Schemas Part 2: Datatypes REC 02 May 2001
· W3C xml:id Working Draft 7 April 2004
In most cases libxml2 tries to implement the specifications in a relatively strictly compliant way. As of release 2.4.16, libxml2 passed all 1800+ tests from the OASIS XML Tests Suite.


Contained static functions:
htmlCreateMemoryParserCtxt Create a parser context for an HTML in-memory document
htmlCtxtReadDoc Parse an XML in-memory document and build a tree
htmlCtxtReadFile Parse an XML file from the filesystem or the network
htmlCtxtReadMemory Parse an XML in-memory document and build a tree
htmlCtxtReset Reset a parser context
htmlCtxtUseOptions Applies the options to the parser context
htmlDocDumpMemory Dump an HTML document in memory
htmlElemDescArray Describes the htmlElemDesc into an array
htmlElementAllowedHere Checks whether an HTML element may be a direct child of a parent element
htmlElementStatusHere Checks whether an HTML element may be a direct child of a parent element, and if so whether it is valid or deprecated
htmlEntityDescArray Describes the htmlEntityDesc into an array
htmlFreeParserCtxt Free all the memory used by a parser context
htmlGetMetaEncoding Encoding definition lookup in the Meta tags
htmlHandleOmittedElem Set and return the previous value for handling HTML omitted tags
htmlIsAutoClosed The HTML DTD allows a tag to implicitly close other tags
htmlIsBooleanAttr Determine if a given attribute is a boolean attribute
htmlIsScriptAttribute Check if an attribute is of content type Script
htmlNewDoc Creates a new HTML document
htmlNewDocNoDtD Creates a new HTML document without a DTD node if URI and ExternalID are empty strings
htmlNodeStatus Checks whether the tree node is valid
htmlParseCharRef Parse Reference declarations
htmlParseChunk Parse a Chunk of memory
htmlParseDoc Parse an HTML in-memory document and build a tree
htmlParseDocument Parse an HTML document (and build a tree if using the standard SAX interface)
htmlParseElement Parse an HTML element, this is highly recursive
htmlParseFile Parse an HTML file and build a tree
htmlReadDoc Parse an XML in-memory document and build a tree
htmlReadFile Parse an XML file from the filesystem or the network
htmlReadMemory Parse an XML in-memory document and build a tree
htmlSaveFile Dump an HTML document to a file
htmlSaveFileEnc Dump an HTML document to a file using a given encoding
htmlSaveFileFormat Dump an HTML document to a file using a given encoding and formatting returns/spaces are added
htmlSetMetaEncoding Sets the current encoding in the Meta tags
xmlAddChild Add a new node to parent, at the end of the child (or property) list merging adjacent TEXT nodes (in which case cur is freed)
xmlAddChildList Add a list of node at the end of the child list of the parent merging adjacent TEXT nodes
xmlAddNextSibling Add a new node elem as the next sibling of cur
xmlAddPrevSibling Add a new node elem as the previous sibling of cur merging adjacent TEXT nodes (elem may be freed)
xmlAddSibling Add a new element elem to the list of siblings of cur merging adjacent TEXT nodes (elem may be freed)
xmlCleanupParser Cleanup function for the XML library
xmlDocDumpFormatMemory Dump an XML document in memory and return the buffer
xmlDocGetRootElement Get the root element of the document (doc->children is a list containing possibly comments, PIs, etc
xmlDocSetRootElement Set the root element of the document (doc->children is a list containing possibly comments, PIs, etc)
xmlEncodeEntitiesReentrant Do a global encoding of a string, replacing the predefined entities and non ASCII values with their entities and CharRef counterparts
xmlFreeDoc Free up all the structures used by a document, tree included
xmlFreeTextReader Deallocate all the resources associated to the reader
xmlGetNodeArray Retrieve the XML node information into an array
xmlGetNodePath Build a structure based Path for the given node
xmlGetNsList Search all the namespace applying to a given element
xmlGetNsProp Search and get the value of an attribute associated to a node
xmlGetProp Search and get the value of an attribute associated to a node
xmlHasNsProp Search for an attribute associated to a node
xmlHasProp Search an attribute associated to a node
xmlIsBlankNode Checks whether this node is an empty or whitespace only (and possibly ignorable) text-node
xmlMemoryDump Dump in-extenso the memory blocks allocated to the file
xmlNewChild Creation of a new child element, added at the end of parent children list
xmlNewComment Creation of a new node containing a comment
xmlNewDoc Creates a new XML document
xmlNewDocComment Creation of a new node containing a comment within a document
xmlNewDocNode Creation of a new node element within a document
xmlNewDocPI Creation of a processing instruction element
xmlNewDocRawNode Creation of a new node element within a document
xmlNewDocText Creation of a new text node within a document
xmlNewGlobalNs Creation of a Namespace
xmlNewNode Creation of a new node element
xmlNewNs Creation of a new Namespace
xmlNewNsProp Create a new property tagged with a namespace and carried by a node
xmlNewPI Creation of a processing instruction element
xmlNewProp Create a new property carried by a node
xmlNewReference Creation of a new reference node
xmlNewText Creation of a new text node
xmlNewTextChild Creation of a new child element, added at the end of parent children list
xmlNodeAddContent Append the extra substring to the node content
xmlNodeGetBase Searches for the BASE URL
xmlNodeGetContent Read the value of a node, this can be either the text carried directly by this node if it's a TEXT node or the aggregate string of the values carried by this node child's (TEXT and ENTITY_REF)
xmlNodeGetLang Searches the language of a node
xmlNodeIsText Is this node a Text node?
xmlNodeSetBase Set (or reset) the base URI of a node
xmlNodeSetContent Replace the content of a node
xmlNodeSetLang Set the language of a node
xmlNodeSetName Set (or reset) the name of a node
xmlParseFile Parse an XML file and build a tree
xmlParseMemory Parse an XML in-memory block and build a tree
xmlReadDoc Parse an XML in-memory document and build a tree
xmlReadFile Parse an XML file from the filesystem or the network
xmlReadMemory Parse an XML in-memory document and build a tree
xmlReaderForFile Parse an XML file from the filesystem or the network
xmlReaderForMemory Create an xmltextReader for an XML in-memory document
xmlRemoveProp Unlink and free one attribute, all the content is freed too Note this doesn't work for namespace definition attributes
xmlSaveFile Dump an XML document to a file
xmlSearchNs Search a Ns registered under a given name space for a document
xmlSearchNsByHref Search a Ns aliasing a given URI
xmlSetNsProp Set (or reset) an attribute carried by a node
xmlSetProp Set (or reset) an attribute carried by a node
xmlSetTreeDoc Update all nodes under the tree to point to the right document
xmlTextReaderConstName The qualified name of the node, equal to Prefix :LocalName
xmlTextReaderConstValue Provides the text value of the node if present
xmlTextReaderCurrentDoc Hacking interface allowing to get the xmlDocPtr correponding to the current document being accessed by the xmlTextReader
xmlTextReaderDepth The depth of the node in the tree
xmlTextReaderHasValue Whether the node can have a text value
xmlTextReaderIsEmptyElement Check if the current node is empty
xmlTextReaderIsValid Retrieve the validity status from the parser context
xmlTextReaderNodeType Get the node type of the current node
xmlTextReaderPreservePattern This tells the XML Reader to preserve all nodes matched by the pattern
xmlTextReaderRead The quotation mark character used to enclose the value of an attribute




Documented by Eduard Suica by adapting from http://xmlsoft.org/, generation time: Sun Jan 27 18:15:20 2013 GMT(c)2013 Devronium Applications