Similar to xmlGetNsProp() but with a slightly different semantic
Search and get the value of an attribute associated to a node
This attribute has to be anchored in the namespace specified,
or has no namespace and the element is in that namespace.
This does the entity substitution.
This function looks in DTD attribute declaration for FIXED or
default declaration values unless DTD use has been turned off.
node :
the node
name :
the attribute name
nameSpace :
the URI of the namespace
Returns :
the attribute value or NULL if not found.
It's up to the caller to free the memory.
Function to reset the handler and the error context for out of
context error messages.
This simply means that handler will be called for subsequent
error messages while not parsing nor validating. And ctx will
be passed as first argument to handler
One can simply force messages to be emitted to another FILE * than
stderr by setting ctx to this file handle and handler to NULL.
Function to reset the handler and the error context for out of
context error messages.
This simply means that handler will be called for subsequent
error messages while not parsing or validating. And ctx will
be passed as first argument to handler
One can simply force messages to be emitted to another FILE * than
stderr by setting ctx to this file handle and handler to NULL.
This function analyzes name, if the name contains a prefix,
the function seaches the associated namespace in scope for it.
It will also replace name value with the NCName, the old value being
freed.
Errors in the prefix lookup are signalled by setting name to NULL.
NOTE: the namespace returned is a pointer to the place where it is
defined and hence has the same lifespan as the document holding it.
node :
the node holding the QName
name :
pointer to the initial QName value
Returns :
the namespace URI if there is a prefix, or NULL if name is
not prefixed.
xsltSaveResultTo ()
int xsltSaveResultTo (xmlOutputBufferPtr buf,
xmlDocPtr result,
xsltStylesheetPtr style);
Save the result result obtained by applying the style stylesheet
to an I/O output channel buf
buf :
an output buffer
result :
the result xmlDocPtr
style :
the stylesheet
Returns :
the number of byte written or -1 in case of failure.
xsltSaveResultToFilename ()
int xsltSaveResultToFilename (const char *URI,
xmlDocPtr result,
xsltStylesheetPtr style,
int compression);
Save the result result obtained by applying the style stylesheet
to a file or URL
URI :
result :
the result xmlDocPtr
style :
the stylesheet
compression :
the compression factor (0 - 9 included)
Returns :
the number of byte written or -1 in case of failure.
xsltSaveResultToFile ()
int xsltSaveResultToFile (FILE *file,
xmlDocPtr result,
xsltStylesheetPtr style);
Save the result result obtained by applying the style stylesheet
to an open FILE * I/O.
This does not close the FILE file
file :
a FILE * I/O
result :
the result xmlDocPtr
style :
the stylesheet
Returns :
the number of bytes written or -1 in case of failure.
xsltSaveResultToFd ()
int xsltSaveResultToFd (int fd,
xmlDocPtr result,
xsltStylesheetPtr style);
Save the result result obtained by applying the style stylesheet
to an open file descriptor
This does not close the descriptor.
fd :
a file descriptor
result :
the result xmlDocPtr
style :
the stylesheet
Returns :
the number of bytes written or -1 in case of failure.