2000-04-20 23:58:42 -04:00
|
|
|
/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
|
|
|
|
See the file copying.txt for copying permission. */
|
1997-11-11 00:52:10 -05:00
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
enum WfCheckResult {
|
|
|
|
wellFormed,
|
|
|
|
noMemory,
|
1997-11-14 21:44:29 -05:00
|
|
|
syntaxError,
|
1997-11-11 00:52:10 -05:00
|
|
|
noElements,
|
|
|
|
invalidToken,
|
|
|
|
unclosedToken,
|
|
|
|
partialChar,
|
|
|
|
tagMismatch,
|
|
|
|
duplicateAttribute,
|
1997-12-10 02:44:19 -05:00
|
|
|
junkAfterDocElement,
|
|
|
|
paramEntityRef,
|
|
|
|
undefinedEntity,
|
|
|
|
recursiveEntityRef,
|
|
|
|
asyncEntity,
|
|
|
|
badCharRef,
|
|
|
|
binaryEntityRef,
|
|
|
|
attributeExternalEntityRef,
|
|
|
|
misplacedXmlPi,
|
|
|
|
unknownEncoding,
|
|
|
|
incorrectEncoding
|
1997-11-11 00:52:10 -05:00
|
|
|
};
|
|
|
|
|
1997-12-10 02:44:19 -05:00
|
|
|
enum EntityType {
|
|
|
|
documentEntity,
|
|
|
|
generalTextEntity
|
|
|
|
};
|
|
|
|
|
|
|
|
enum WfCheckResult wfCheck(enum EntityType entityType,
|
|
|
|
const char *s, size_t n,
|
1997-11-12 05:38:58 -05:00
|
|
|
const char **errorPtr,
|
|
|
|
unsigned long *errorLineNumber,
|
|
|
|
unsigned long *errorColNumber);
|
1997-12-10 02:44:19 -05:00
|
|
|
const char *wfCheckMessage(enum WfCheckResult);
|
1997-11-11 00:52:10 -05:00
|
|
|
|