|
|
|
|
|
|
|
|
|
htmlDocContentDumpFormatOutput(self,
buf,
encoding,
format)
Dump an HTML document. |
source code
|
|
|
|
|
htmlDocDump(self,
f)
Dump an HTML document to an open FILE. |
source code
|
|
|
htmlGetMetaEncoding(self)
Encoding definition lookup in the Meta tags |
source code
|
|
|
htmlNodeDumpFile(self,
out,
cur)
Dump an HTML node, recursive behaviour,children are printed too,
and formatting returns are added. |
source code
|
|
|
|
|
htmlNodeDumpFormatOutput(self,
buf,
cur,
encoding,
format)
Dump an HTML node, recursive behaviour,children are printed
too. |
source code
|
|
|
htmlNodeDumpOutput(self,
buf,
cur,
encoding)
Dump an HTML node, recursive behaviour,children are printed too,
and formatting returns/spaces are added. |
source code
|
|
|
|
|
htmlSaveFileEnc(self,
filename,
encoding)
Dump an HTML document to a file using a given encoding and
formatting returns/spaces are added. |
source code
|
|
|
htmlSaveFileFormat(self,
filename,
encoding,
format)
Dump an HTML document to a file using a given encoding. |
source code
|
|
|
htmlSetMetaEncoding(self,
encoding)
Sets the current encoding in the Meta tags NOTE: this will not
change the document content encoding, just the META flag
associated. |
source code
|
|
|
debugCheckDocument(self,
output)
Check the document for potential content problems, and output the
errors to @output |
source code
|
|
|
debugDumpDocument(self,
output)
Dumps debug information for the document, it's recursive |
source code
|
|
|
debugDumpDocumentHead(self,
output)
Dumps debug information cncerning the document, not recursive |
source code
|
|
|
debugDumpEntities(self,
output)
Dumps debug information for all the entities in use by the
document |
source code
|
|
|
addDocEntity(self,
name,
type,
ExternalID,
SystemID,
content)
Register a new entity for this document. |
source code
|
|
|
addDtdEntity(self,
name,
type,
ExternalID,
SystemID,
content)
Register a new entity for this document DTD external subset. |
source code
|
|
|
docEntity(self,
name)
Do an entity lookup in the document entity hash table and |
source code
|
|
|
dtdEntity(self,
name)
Do an entity lookup in the DTD entity hash table and |
source code
|
|
|
encodeEntities(self,
input)
TODO: remove xmlEncodeEntities, once we are not afraid of breaking
binary compatibility People must migrate their code to
xmlEncodeEntitiesReentrant ! This routine will issue a warning when
encountered. |
source code
|
|
|
encodeEntitiesReentrant(self,
input)
Do a global encoding of a string, replacing the predefined
entities and non ASCII values with their entities and CharRef
counterparts. |
source code
|
|
|
encodeSpecialChars(self,
input)
Do a global encoding of a string, replacing the predefined
entities this routine is reentrant, and result must be
deallocated. |
source code
|
|
|
parameterEntity(self,
name)
Do an entity lookup in the internal and external subsets and |
source code
|
|
|
|
|
relaxNGValidateDoc(self,
ctxt)
Validate a document tree in memory. |
source code
|
|
|
relaxNGValidateFullElement(self,
ctxt,
elem)
Validate a full subtree when xmlRelaxNGValidatePushElement()
returned 0 and the content of the node has been expanded. |
source code
|
|
|
relaxNGValidatePopElement(self,
ctxt,
elem)
Pop the element end from the RelaxNG validation stack. |
source code
|
|
|
relaxNGValidatePushElement(self,
ctxt,
elem)
Push a new element start on the RelaxNG validation stack. |
source code
|
|
|
|
|
|
|
|
|
createIntSubset(self,
name,
ExternalID,
SystemID)
Create the internal subset of a document |
source code
|
|
|
docCompressMode(self)
get the compression ratio for a document, ZLIB based |
source code
|
|
|
dump(self,
f)
Dump an XML document to an open FILE. |
source code
|
|
|
elemDump(self,
f,
cur)
Dump an XML/HTML node, recursive behaviour, children are printed
too. |
source code
|
|
|
formatDump(self,
f,
format)
Dump an XML document to an open FILE. |
source code
|
|
|
freeDoc(self)
Free up all the structures used by a document, tree included. |
source code
|
|
|
getRootElement(self)
Get the root element of the document (doc->children is a list
containing possibly comments, PIs, etc ...). |
source code
|
|
|
intSubset(self)
Get the internal subset of a document |
source code
|
|
|
newCDataBlock(self,
content,
len)
Creation of a new node containing a CDATA block. |
source code
|
|
|
newCharRef(self,
name)
Creation of a new character reference node. |
source code
|
|
|
newDocComment(self,
content)
Creation of a new node containing a comment within a document. |
source code
|
|
|
newDocFragment(self)
Creation of a new Fragment node. |
source code
|
|
|
|
|
|
|
newDocPI(self,
name,
content)
Creation of a processing instruction element. |
source code
|
|
|
newDocProp(self,
name,
value)
Create a new property carried by a document. |
source code
|
|
|
|
|
newDocText(self,
content)
Creation of a new text node within a document. |
source code
|
|
|
|
|
newDtd(self,
name,
ExternalID,
SystemID)
Creation of a new DTD for the external subset. |
source code
|
|
|
newGlobalNs(self,
href,
prefix)
Creation of a Namespace, the old way using PI and without scoping
DEPRECATED !!! |
source code
|
|
|
newReference(self,
name)
Creation of a new reference node. |
source code
|
|
|
nodeDumpOutput(self,
buf,
cur,
level,
format,
encoding)
Dump an XML node, recursive behaviour, children are printed
too. |
source code
|
|
|
|
|
nodeListGetRawString(self,
list,
inLine)
Builds the string equivalent to the text contained in the Node
list made of TEXTs and ENTITY_REFs, contrary to
xmlNodeListGetString() this function doesn't do any character
encoding handling. |
source code
|
|
|
nodeListGetString(self,
list,
inLine)
Build the string equivalent to the text contained in the Node list
made of TEXTs and ENTITY_REFs |
source code
|
|
|
reconciliateNs(self,
tree)
This function checks that all the namespaces declared within the
given tree are properly declared. |
source code
|
|
|
|
|
saveFileEnc(self,
filename,
encoding)
Dump an XML document, converting it to the given encoding |
source code
|
|
|
|
|
|
|
saveFormatFileEnc(self,
filename,
encoding,
format)
Dump an XML document to a file or an URL. |
source code
|
|
|
|
|
searchNs(self,
node,
nameSpace)
Search a Ns registered under a given name space for a
document. |
source code
|
|
|
|
|
setDocCompressMode(self,
mode)
set the compression ratio for a document, ZLIB based Correct
values: 0 (uncompressed) to 9 (max compression) |
source code
|
|
|
|
|
setRootElement(self,
root)
Set the root element of the document (doc->children is a list
containing possibly comments, PIs, etc ...). |
source code
|
|
|
|
|
|
|
|
|
ID(self,
ID)
Search the attribute declaring the given ID |
source code
|
|
|
isID(self,
elem,
attr)
Determine whether an attribute is of type ID. |
source code
|
|
|
isMixedElement(self,
name)
Search in the DtDs whether an element accept Mixed content (or
ANY) basically if it is supposed to accept text childs |
source code
|
|
|
isRef(self,
elem,
attr)
Determine whether an attribute is of type Ref. |
source code
|
|
|
removeID(self,
attr)
Remove the given attribute from the ID table maintained
internally. |
source code
|
|
|
removeRef(self,
attr)
Remove the given attribute from the Ref table maintained
internally. |
source code
|
|
|
validCtxtNormalizeAttributeValue(self,
ctxt,
elem,
name,
value)
Does the validation related extra step of the normalization of
attribute values: If the declared value is not CDATA, then the XML
processor must further process the normalized attribute value by
discarding any leading and trailing space (#x20) characters, and by
replacing sequences of space (#x20) characters by single space (#x20)
character. |
source code
|
|
|
validNormalizeAttributeValue(self,
elem,
name,
value)
Does the validation related extra step of the normalization of
attribute values: If the declared value is not CDATA, then the XML
processor must further process the normalized attribute value by
discarding any leading and trailing space (#x20) characters, and by
replacing sequences of space (#x20) characters by single space (#x20)
character. |
source code
|
|
|
validateDocument(self,
ctxt)
Try to validate the document instance basically it does the all
the checks described by the XML Rec i.e. |
source code
|
|
|
validateDocumentFinal(self,
ctxt)
Does the final step for the document validation once all the
incremental validation steps have been completed basically it does
the following checks described by the XML Rec Check all the
IDREF/IDREFS attributes definition for validity |
source code
|
|
|
validateDtd(self,
ctxt,
dtd)
Try to validate the document against the dtd instance Basically it
does check all the definitions in the DtD. |
source code
|
|
|
validateDtdFinal(self,
ctxt)
Does the final step for the dtds validation once all the subsets
have been parsed basically it does the following checks described by
the XML Rec - check that ENTITY and ENTITIES type attributes default
or possible values matches one of the defined entities. |
source code
|
|
|
validateElement(self,
ctxt,
elem)
Try to validate the subtree under an element |
source code
|
|
|
|
|
validateOneAttribute(self,
ctxt,
elem,
attr,
value)
Try to validate a single attribute for an element basically it
does the following checks as described by the XML-1.0 recommendation:
- [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [
VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] -
[ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF
uniqueness and matching are done separately |
source code
|
|
|
validateOneElement(self,
ctxt,
elem)
Try to validate a single element and it's attributes, basically it
does the following checks as described by the XML-1.0 recommendation:
- [ VC: Element Valid ] - [ VC: Required Attribute ] Then call
xmlValidateOneAttribute() for each attribute present. |
source code
|
|
|
validateOneNamespace(self,
ctxt,
elem,
prefix,
ns,
value)
Try to validate a single namespace declaration for an element
basically it does the following checks as described by the XML-1.0
recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed
Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [
VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation
Attributes ] The ID/IDREF uniqueness and matching are done
separately |
source code
|
|
|
validatePopElement(self,
ctxt,
elem,
qname)
Pop the element end from the validation stack. |
source code
|
|
|
validatePushElement(self,
ctxt,
elem,
qname)
Push a new element start on the validation stack. |
source code
|
|
|
validateRoot(self,
ctxt)
Try to validate a the root element basically it does the following
check as described by the XML-1.0 recommendation: - [ VC: Root
Element Type ] it doesn't try to recurse or apply other check to the
element |
source code
|
|
|
xincludeProcess(self)
Implement the XInclude substitution on the XML document @doc |
source code
|
|
|
xincludeProcessFlags(self,
flags)
Implement the XInclude substitution on the XML document @doc |
source code
|
|
|
|
|
readerWalker(self)
Create an xmltextReader for a preparsed document. |
source code
|
|
|
|
|
|
|
xpathNewContext(self)
Create a new xmlXPathContext |
source code
|
|
|
|
|
|
Inherited from xmlNode :
addChild ,
addChildList ,
addContent ,
addContentLen ,
addNextSibling ,
addPrevSibling ,
addSibling ,
copyProp ,
copyPropList ,
debugDumpNode ,
debugDumpNodeList ,
debugDumpOneNode ,
docCopyNode ,
docCopyNodeList ,
docSetRootElement ,
freeNode ,
freeNodeList ,
getBase ,
getContent ,
getLang ,
getSpacePreserve ,
hasNsProp ,
hasProp ,
isBlankNode ,
isText ,
lastChild ,
lineNo ,
listGetRawString ,
listGetString ,
lsCountNode ,
lsOneNode ,
newChild ,
newNs ,
newNsProp ,
newNsPropEatName ,
newProp ,
newTextChild ,
noNsProp ,
nodePath ,
ns ,
nsDefs ,
nsProp ,
prop ,
replaceNode ,
schemaValidateOneElement ,
setBase ,
setContent ,
setContentLen ,
setLang ,
setName ,
setNs ,
setNsProp ,
setProp ,
setSpacePreserve ,
shellPrintNode ,
textConcat ,
textMerge ,
unlinkNode ,
unsetNsProp ,
unsetProp ,
xincludeProcessTree ,
xincludeProcessTreeFlags ,
xpathCastNodeToNumber ,
xpathCastNodeToString ,
xpathCmpNodes ,
xpathNewNodeSet ,
xpathNewValueTree ,
xpathNextAncestor ,
xpathNextAncestorOrSelf ,
xpathNextAttribute ,
xpathNextChild ,
xpathNextDescendant ,
xpathNextDescendantOrSelf ,
xpathNextFollowing ,
xpathNextFollowingSibling ,
xpathNextNamespace ,
xpathNextParent ,
xpathNextPreceding ,
xpathNextPrecedingSibling ,
xpathNextSelf ,
xpointerNewCollapsedRange ,
xpointerNewLocationSetNodes ,
xpointerNewRange ,
xpointerNewRangeNodes
Inherited from xmlCore :
__eq__ ,
__getattr__ ,
__hash__ ,
__iter__ ,
__ne__ ,
__str__ ,
c14nMemory ,
c14nSaveTo ,
free ,
get_children ,
get_content ,
get_doc ,
get_last ,
get_name ,
get_next ,
get_parent ,
get_prev ,
get_properties ,
get_type ,
removeNsDef ,
saveTo ,
serialize ,
walk_breadth_first ,
walk_depth_first ,
xpathEval ,
xpathEval2
|