1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#include <stddef.h>
enum WfCheckResult {
wellFormed,
noMemory,
syntaxError,
noElements,
invalidToken,
unclosedToken,
partialChar,
tagMismatch,
duplicateAttribute,
junkAfterDocElement,
paramEntityRef,
undefinedEntity,
recursiveEntityRef,
asyncEntity,
badCharRef,
binaryEntityRef,
attributeExternalEntityRef,
misplacedXmlPi,
unknownEncoding,
incorrectEncoding
};
enum EntityType {
documentEntity,
generalTextEntity
};
enum WfCheckResult wfCheck(enum EntityType entityType,
const char *s, size_t n,
const char **errorPtr,
unsigned long *errorLineNumber,
unsigned long *errorColNumber);
const char *wfCheckMessage(enum WfCheckResult);
|