XML Security Library

LibXML2
LibXSLT
OpenSSL

parser

Name

parser -- 

Synopsis


xmlDocPtr   xmlSecParseFile                 (const char *filename);
xmlDocPtr   xmlSecParseMemory               (unsigned char *buffer,
                                             size_t size,
                                             int recovery);
xmlDocPtr   xmlSecParseMemoryExt            (unsigned char *prefix,
                                             size_t prefixSize,
                                             unsigned char *buffer,
                                             size_t bufferSize,
                                             unsigned char *postfix,
                                             size_t postfixSize);
#define     xmlSecTransformXmlParserId
xmlSecTransformId xmlSecTransformXmlParserGetKlass
                                            (void);

Description

Details

xmlSecParseFile ()

xmlDocPtr   xmlSecParseFile                 (const char *filename);

Loads XML Doc from file filename. We need a special version because of c14n issue. The code is copied from xmlSAXParseFileWithData() function.

filename : the filename.
Returns : pointer to the loaded XML document or NULL if an error occurs.


xmlSecParseMemory ()

xmlDocPtr   xmlSecParseMemory               (unsigned char *buffer,
                                             size_t size,
                                             int recovery);

Loads XML Doc from memory. We need a special version because of c14n issue. The code is copied from xmlSAXParseMemory() function.

buffer : the input buffer.
size : the input buffer size.
recovery : the flag.
Returns : pointer to the loaded XML document or NULL if an error occurs.


xmlSecParseMemoryExt ()

xmlDocPtr   xmlSecParseMemoryExt            (unsigned char *prefix,
                                             size_t prefixSize,
                                             unsigned char *buffer,
                                             size_t bufferSize,
                                             unsigned char *postfix,
                                             size_t postfixSize);

Loads XML Doc from 3 chunks of memory: prefix, buffer and postfix. '

prefix : the first part of the input.
prefixSize : the size of the first part of the input.
buffer : the second part of the input.
bufferSize : the size of the second part of the input.
postfix : the third part of the input.
postfixSize : the size of the third part of the input.
Returns : pointer to the loaded XML document or NULL if an error occurs.


xmlSecTransformXmlParserId

#define     xmlSecTransformXmlParserId

The XML Parser transform klass.


xmlSecTransformXmlParserGetKlass ()

xmlSecTransformId xmlSecTransformXmlParserGetKlass
                                            (void);

Returns :  



Aleksey Sanin