Add header file for physxml
[libisds.git] / src / physxml.h
blob6a163d9362aa4a99d5753f9a90bdc966be3e73e3
1 #ifndef __ISDS_PHYSXML_H__
2 #define __ISDS_PHYSXML_H__
4 #include "isds.h"
6 /* Check for expat compile-time configuration */
7 isds_error expat_init(void);
9 /* Locate element specified by element path in XML stream.
10 * TODO: Support other encodings than UTF-8
11 * @document is XML documuent as bitstream
12 * @length is size of @docuement in bytes. Zero length is forbidden.
13 * @path is special path (e.g. "|html|head|title",
14 * quallified element names are specified as
15 * NSURI '>' LOCALNAME, ommit NSURI and '>' separator if no namespace
16 * should be addressed (i.e. use only locale name)
17 * You can use PHYSXML_ELEMENT_SEPARATOR and PHYSXML_NS_SEPARATOR string
18 * macros.
19 * @start outputs start of the element location in @document (inclusive,
20 * counts from 0)
21 * @end outputs end of element (inclusive, counts from 0)
22 * @return 0 if element found */
23 isds_error find_element_boundary(void *document, size_t length,
24 char *path, size_t *start, size_t *end);
25 #endif