http://swpat.ffii.org/
Action against software patents
http://www.gnome.org/
Gnome2 Logo
http://www.w3.org/Status
W3C Logo
http://www.redhat.com/
Red Hat Logo
http://xmlsoft.org/
Made with Libxml2 Logo
Module xmlschemastypes from libxml2
API Menu
../index.html
Main Menu
../docs.html
Developer Menu
../examples/index.html
Code Examples
index.html
API Menu
libxml-parser.html
Parser API
libxml-tree.html
Tree API
libxml-xmlreader.html
Reader API
../guidelines.html
XML Guidelines
../ChangeLog.html
ChangeLog
API Indexes
../APIchunk0.html
Alphabetic
../APIconstructors.html
Constructors
../APIfunctions.html
Functions/Types
../APIfiles.html
Modules
../APIsymbols.html
Symbols
Related links
http://mail.gnome.org/archives/xml/
Mail archive
http://xmlsoft.org/XSLT/
XSLT libxslt
http://phd.cs.unibo.it/gdome2/
DOM gdome2
http://www.aleksey.com/xmlsec/
XML-DSig xmlsec
ftp://xmlsoft.org/
FTP
http://www.zlatkovic.com/projects/libxml/
Windows binaries
http://www.blastwave.org/packages.php/libxml2
Solaris binaries
http://www.explain.com.au/oss/libxml2xslt.html
MacOsX binaries
http://libxmlplusplus.sourceforge.net/
C++ bindings
http://www.zend.com/php5/articles/php5-xmlphp.php#Heading4
PHP bindings
http://sourceforge.net/projects/libxml2-pas/
Pascal bindings
http://rubyforge.org/projects/xml-tools/
Ruby bindings
http://tclxml.sourceforge.net/
Tcl bindings
http://bugzilla.gnome.org/buglist.cgi?product=libxml2
Bug Tracker
libxml-xmlschemas.html
Prev
libxml-xmlschemas.html
xmlschemas
index.html
Up
index.html
API documentation
../index.html
Home
../index.html
The XML C parser and toolkit of Gnome
libxml-xmlstring.html
xmlstring
libxml-xmlstring.html
Next
module providing the XML Schema Datatypes implementation both definition and validity checking
Table of Contents
Enum
#xmlSchemaWhitespaceValueType
xmlSchemaWhitespaceValueType
int
#xmlSchemaCheckFacet
xmlSchemaCheckFacet
(
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet,
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
typeDecl,
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
pctxt,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
void
#xmlSchemaCleanupTypes
xmlSchemaCleanupTypes
(void)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlSchemaCollapseString
xmlSchemaCollapseString
(const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
int
#xmlSchemaCompareValues
xmlSchemaCompareValues
(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
x,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
y)
int
#xmlSchemaCompareValuesWhtsp
xmlSchemaCompareValuesWhtsp
(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
x,
libxml-xmlschemastypes.html#xmlSchemaWhitespaceValueType
xmlSchemaWhitespaceValueType
xws,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
y,
libxml-xmlschemastypes.html#xmlSchemaWhitespaceValueType
xmlSchemaWhitespaceValueType
yws)
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
#xmlSchemaCopyValue
xmlSchemaCopyValue
(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val)
void
#xmlSchemaFreeFacet
xmlSchemaFreeFacet
(
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet)
void
#xmlSchemaFreeValue
xmlSchemaFreeValue
(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
value)
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
#xmlSchemaGetBuiltInListSimpleTypeItemType
xmlSchemaGetBuiltInListSimpleTypeItemType
(
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
type)
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
#xmlSchemaGetBuiltInType
xmlSchemaGetBuiltInType
(
libxml-schemasInternals.html#xmlSchemaValType
xmlSchemaValType
type)
int
#xmlSchemaGetCanonValue
xmlSchemaGetCanonValue
(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val,
const
libxml-xmlstring.html#xmlChar
xmlChar
** retValue)
int
#xmlSchemaGetCanonValueWhtsp
xmlSchemaGetCanonValueWhtsp
(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val,
const
libxml-xmlstring.html#xmlChar
xmlChar
** retValue,
libxml-xmlschemastypes.html#xmlSchemaWhitespaceValueType
xmlSchemaWhitespaceValueType
ws)
unsigned long
#xmlSchemaGetFacetValueAsULong
xmlSchemaGetFacetValueAsULong
(
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet)
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
#xmlSchemaGetPredefinedType
xmlSchemaGetPredefinedType
(const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ns)
libxml-schemasInternals.html#xmlSchemaValType
xmlSchemaValType
#xmlSchemaGetValType
xmlSchemaGetValType
(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val)
void
#xmlSchemaInitTypes
xmlSchemaInitTypes
(void)
int
#xmlSchemaIsBuiltInTypeFacet
xmlSchemaIsBuiltInTypeFacet
(
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
type,
int facetType)
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
#xmlSchemaNewFacet
xmlSchemaNewFacet
(void)
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
#xmlSchemaNewNOTATIONValue
xmlSchemaNewNOTATIONValue
(const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ns)
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
#xmlSchemaNewQNameValue
xmlSchemaNewQNameValue
(const
libxml-xmlstring.html#xmlChar
xmlChar
* namespaceName,
const
libxml-xmlstring.html#xmlChar
xmlChar
* localName)
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
#xmlSchemaNewStringValue
xmlSchemaNewStringValue
(
libxml-schemasInternals.html#xmlSchemaValType
xmlSchemaValType
type,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
int
#xmlSchemaValPredefTypeNode
xmlSchemaValPredefTypeNode
(
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
type,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
* val,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
int
#xmlSchemaValPredefTypeNodeNoNorm
xmlSchemaValPredefTypeNodeNoNorm
(
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
type,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
* val,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
int
#xmlSchemaValidateFacet
xmlSchemaValidateFacet
(
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
base,
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val)
int
#xmlSchemaValidateFacetWhtsp
xmlSchemaValidateFacetWhtsp
(
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet,
libxml-xmlschemastypes.html#xmlSchemaWhitespaceValueType
xmlSchemaWhitespaceValueType
fws,
libxml-schemasInternals.html#xmlSchemaValType
xmlSchemaValType
valType,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val,
libxml-xmlschemastypes.html#xmlSchemaWhitespaceValueType
xmlSchemaWhitespaceValueType
ws)
int
#xmlSchemaValidateLengthFacet
xmlSchemaValidateLengthFacet
(
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
type,
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val,
unsigned long * length)
int
#xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateLengthFacetWhtsp
(
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet,
libxml-schemasInternals.html#xmlSchemaValType
xmlSchemaValType
valType,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val,
unsigned long * length,
libxml-xmlschemastypes.html#xmlSchemaWhitespaceValueType
xmlSchemaWhitespaceValueType
ws)
int
#xmlSchemaValidateListSimpleTypeFacet
xmlSchemaValidateListSimpleTypeFacet
(
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
unsigned long actualLen,
unsigned long * expectedLen)
int
#xmlSchemaValidatePredefinedType
xmlSchemaValidatePredefinedType
(
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
type,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
* val)
int
#xmlSchemaValueAppend
xmlSchemaValueAppend
(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
prev,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
cur)
int
#xmlSchemaValueGetAsBoolean
xmlSchemaValueGetAsBoolean
(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val)
const
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlSchemaValueGetAsString
xmlSchemaValueGetAsString
(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val)
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
#xmlSchemaValueGetNext
xmlSchemaValueGetNext
(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
cur)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlSchemaWhiteSpaceReplace
xmlSchemaWhiteSpaceReplace
(const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Description
Enum
xmlSchemaWhitespaceValueType
Enum xmlSchemaWhitespaceValueType {
XML_SCHEMA_WHITESPACE_UNKNOWN
= 0
XML_SCHEMA_WHITESPACE_PRESERVE
= 1
XML_SCHEMA_WHITESPACE_REPLACE
= 2
XML_SCHEMA_WHITESPACE_COLLAPSE
= 3
}
Function: xmlSchemaCheckFacet
int	xmlSchemaCheckFacet		(
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet,
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
typeDecl,
libxml-xmlschemas.html#xmlSchemaParserCtxtPtr
xmlSchemaParserCtxtPtr
pctxt,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Checks and computes the values of facets.
facet
:
the facet
typeDecl
:
the schema type definition
pctxt
:
the schema parser context or NULL
name
:
the optional name of the type
Returns
:
0 if valid, a positive error code if not valid and -1 in case of an internal or API error.
Function: xmlSchemaCleanupTypes
void	xmlSchemaCleanupTypes		(void)
Cleanup the default XML Schemas type library
Function: xmlSchemaCollapseString
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlSchemaCollapseString	(const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Removes and normalize white spaces in the string
value
:
a value
Returns
:
the new string or NULL if no change was required.
Function: xmlSchemaCompareValues
int	xmlSchemaCompareValues		(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
x,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
y)
Compare 2 values
x
:
a first value
y
:
a second value
Returns
:
-1 if x < y, 0 if x == y, 1 if x > y, 2 if x <> y, and -2 in case of error
Function: xmlSchemaCompareValuesWhtsp
int	xmlSchemaCompareValuesWhtsp	(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
x,
libxml-xmlschemastypes.html#xmlSchemaWhitespaceValueType
xmlSchemaWhitespaceValueType
xws,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
y,
libxml-xmlschemastypes.html#xmlSchemaWhitespaceValueType
xmlSchemaWhitespaceValueType
yws)
Compare 2 values
x
:
a first value
xws
:
the whitespace value of x
y
:
a second value
yws
:
the whitespace value of y
Returns
:
-1 if x < y, 0 if x == y, 1 if x > y, 2 if x <> y, and -2 in case of error
Function: xmlSchemaCopyValue
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
xmlSchemaCopyValue	(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val)
Copies the precomputed value. This duplicates any string within.
val
:
the precomputed value to be copied
Returns
:
the copy or NULL if a copy for a data-type is not implemented.
Function: xmlSchemaFreeFacet
void	xmlSchemaFreeFacet		(
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet)
Deallocate a Schema Facet structure.
facet
:
a schema facet structure
Function: xmlSchemaFreeValue
void	xmlSchemaFreeValue		(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
value)
Cleanup the default XML Schemas type library
value
:
the value to free
Function: xmlSchemaGetBuiltInListSimpleTypeItemType
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
xmlSchemaGetBuiltInListSimpleTypeItemType	(
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
type)
Lookup function
type
:
the built-in simple type.
Returns
:
the item type of @type as defined by the built-in datatype hierarchy of XML Schema Part 2: Datatypes, or NULL in case of an error.
Function: xmlSchemaGetBuiltInType
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
xmlSchemaGetBuiltInType	(
libxml-schemasInternals.html#xmlSchemaValType
xmlSchemaValType
type)
Gives you the type struct for a built-in type by its type id.
type
:
the type of the built in type
Returns
:
the type if found, NULL otherwise.
Function: xmlSchemaGetCanonValue
int	xmlSchemaGetCanonValue		(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val,
const
libxml-xmlstring.html#xmlChar
xmlChar
** retValue)
Get a the cononical lexical representation of the value. The caller has to FREE the returned retValue. WARNING: Some value types are not supported yet, resulting in a @retValue of "???". TODO: XML Schema 1.0 does not define canonical representations for: duration, gYearMonth, gYear, gMonthDay, gMonth, gDay, anyURI, QName, NOTATION. This will be fixed in XML Schema 1.1.
val
:
the precomputed value
retValue
:
the returned value
Returns
:
0 if the value could be built, 1 if the value type is not supported yet and -1 in case of API errors.
Function: xmlSchemaGetCanonValueWhtsp
int	xmlSchemaGetCanonValueWhtsp	(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val,
const
libxml-xmlstring.html#xmlChar
xmlChar
** retValue,
libxml-xmlschemastypes.html#xmlSchemaWhitespaceValueType
xmlSchemaWhitespaceValueType
ws)
Get a the cononical representation of the value. The caller has to free the returned @retValue.
val
:
the precomputed value
retValue
:
the returned value
ws
:
the whitespace type of the value
Returns
:
0 if the value could be built, 1 if the value type is not supported yet and -1 in case of API errors.
Function: xmlSchemaGetFacetValueAsULong
unsigned long	xmlSchemaGetFacetValueAsULong	(
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet)
Extract the value of a facet
facet
:
an schemas type facet
Returns
:
the value as a long
Function: xmlSchemaGetPredefinedType
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
xmlSchemaGetPredefinedType	(const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ns)
Lookup a type in the default XML Schemas type library
name
:
the type name
ns
:
the URI of the namespace usually "http://www.w3.org/2001/XMLSchema"
Returns
:
the type if found, NULL otherwise
Function: xmlSchemaGetValType
libxml-schemasInternals.html#xmlSchemaValType
xmlSchemaValType
xmlSchemaGetValType	(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val)
Accessor for the type of a value
val
:
a schemas value
Returns
:
the
libxml-schemasInternals.html#xmlSchemaValType
xmlSchemaValType
of the value
Function: xmlSchemaInitTypes
void	xmlSchemaInitTypes		(void)
Initialize the default XML Schemas type library
Function: xmlSchemaIsBuiltInTypeFacet
int	xmlSchemaIsBuiltInTypeFacet	(
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
type,
int facetType)
Evaluates if a specific facet can be used in conjunction with a type.
type
:
the built-in type
facetType
:
the facet type
Returns
:
1 if the facet can be used with the given built-in type, 0 otherwise and -1 in case the type is not a built-in type.
Function: xmlSchemaNewFacet
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
xmlSchemaNewFacet	(void)
Allocate a new Facet structure.
Returns
:
the newly allocated structure or NULL in case or error
Function: xmlSchemaNewNOTATIONValue
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
xmlSchemaNewNOTATIONValue	(const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ns)
Allocate a new NOTATION value. The given values are consumed and freed with the struct.
name
:
the notation name
ns
:
the notation namespace name or NULL
Returns
:
a pointer to the new value or NULL in case of error
Function: xmlSchemaNewQNameValue
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
xmlSchemaNewQNameValue	(const
libxml-xmlstring.html#xmlChar
xmlChar
* namespaceName,
const
libxml-xmlstring.html#xmlChar
xmlChar
* localName)
Allocate a new QName value. The given values are consumed and freed with the struct.
namespaceName
:
the namespace name
localName
:
the local name
Returns
:
a pointer to the new value or NULL in case of an error.
Function: xmlSchemaNewStringValue
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
xmlSchemaNewStringValue	(
libxml-schemasInternals.html#xmlSchemaValType
xmlSchemaValType
type,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Allocate a new simple type value. The type can be of XML_SCHEMAS_STRING. WARNING: This one is intended to be expanded for other string based types. We need this for anySimpleType as well. The given value is consumed and freed with the struct.
type
:
the value type
value
:
the value
Returns
:
a pointer to the new value or NULL in case of error
Function: xmlSchemaValPredefTypeNode
int	xmlSchemaValPredefTypeNode	(
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
type,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
* val,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val.
type
:
the predefined type
value
:
the value to check
val
:
the return computed value
node
:
the node containing the value
Returns
:
0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.
Function: xmlSchemaValPredefTypeNodeNoNorm
int	xmlSchemaValPredefTypeNodeNoNorm	(
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
type,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
* val,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val. This one does apply any normalization to the value.
type
:
the predefined type
value
:
the value to check
val
:
the return computed value
node
:
the node containing the value
Returns
:
0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.
Function: xmlSchemaValidateFacet
int	xmlSchemaValidateFacet		(
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
base,
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val)
Check a value against a facet condition
base
:
the base type
facet
:
the facet to check
value
:
the lexical repr of the value to validate
val
:
the precomputed value
Returns
:
0 if the element is schemas valid, a positive error code number otherwise and -1 in case of internal or API error.
Function: xmlSchemaValidateFacetWhtsp
int	xmlSchemaValidateFacetWhtsp	(
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet,
libxml-xmlschemastypes.html#xmlSchemaWhitespaceValueType
xmlSchemaWhitespaceValueType
fws,
libxml-schemasInternals.html#xmlSchemaValType
xmlSchemaValType
valType,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val,
libxml-xmlschemastypes.html#xmlSchemaWhitespaceValueType
xmlSchemaWhitespaceValueType
ws)
Check a value against a facet condition. This takes value normalization according to the specified whitespace types into account. Note that @value needs to be the *normalized* value if the facet is of type "pattern".
facet
:
the facet to check
fws
:
the whitespace type of the facet's value
valType
:
the built-in type of the value
value
:
the lexical (or normalized for pattern) repr of the value to validate
val
:
the precomputed value
ws
:
the whitespace type of the value
Returns
:
0 if the element is schemas valid, a positive error code number otherwise and -1 in case of internal or API error.
Function: xmlSchemaValidateLengthFacet
int	xmlSchemaValidateLengthFacet	(
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
type,
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val,
unsigned long * length)
Checka a value against a "length", "minLength" and "maxLength" facet; sets @length to the computed length of @value.
type
:
the built-in type
facet
:
the facet to check
value
:
the lexical repr. of the value to be validated
val
:
the precomputed value
length
:
the actual length of the value
Returns
:
0 if the value is valid, a positive error code otherwise and -1 in case of an internal or API error.
Function: xmlSchemaValidateLengthFacetWhtsp
int	xmlSchemaValidateLengthFacetWhtsp	(
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet,
libxml-schemasInternals.html#xmlSchemaValType
xmlSchemaValType
valType,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val,
unsigned long * length,
libxml-xmlschemastypes.html#xmlSchemaWhitespaceValueType
xmlSchemaWhitespaceValueType
ws)
Checka a value against a "length", "minLength" and "maxLength" facet; sets @length to the computed length of @value.
facet
:
the facet to check
valType
:
the built-in type
value
:
the lexical repr. of the value to be validated
val
:
the precomputed value
length
:
the actual length of the value
ws
:
the whitespace type of the value
Returns
:
0 if the value is valid, a positive error code otherwise and -1 in case of an internal or API error.
Function: xmlSchemaValidateListSimpleTypeFacet
int	xmlSchemaValidateListSimpleTypeFacet	(
libxml-schemasInternals.html#xmlSchemaFacetPtr
xmlSchemaFacetPtr
facet,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
unsigned long actualLen,
unsigned long * expectedLen)
Checks the value of a list simple type against a facet.
facet
:
the facet to check
value
:
the lexical repr of the value to validate
actualLen
:
the number of list items
expectedLen
:
the resulting expected number of list items
Returns
:
0 if the value is valid, a positive error code number otherwise and -1 in case of an internal error.
Function: xmlSchemaValidatePredefinedType
int	xmlSchemaValidatePredefinedType	(
libxml-schemasInternals.html#xmlSchemaTypePtr
xmlSchemaTypePtr
type,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
* val)
Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val.
type
:
the predefined type
value
:
the value to check
val
:
the return computed value
Returns
:
0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.
Function: xmlSchemaValueAppend
int	xmlSchemaValueAppend		(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
prev,
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
cur)
Appends a next sibling to a list of computed values.
prev
:
the value
cur
:
the value to be appended
Returns
:
0 if succeeded and -1 on API errors.
Function: xmlSchemaValueGetAsBoolean
int	xmlSchemaValueGetAsBoolean	(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val)
Accessor for the boolean value of a computed value.
val
:
the value
Returns
:
1 if true and 0 if false, or in case of an error. Hmm.
Function: xmlSchemaValueGetAsString
const
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlSchemaValueGetAsString	(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
val)
Accessor for the string value of a computed value.
val
:
the value
Returns
:
the string value or NULL if there was none, or on API errors.
Function: xmlSchemaValueGetNext
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
xmlSchemaValueGetNext	(
libxml-schemasInternals.html#xmlSchemaValPtr
xmlSchemaValPtr
cur)
Accessor for the next sibling of a list of computed values.
cur
:
the value
Returns
:
the next value or NULL if there was none, or on API errors.
Function: xmlSchemaWhiteSpaceReplace
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlSchemaWhiteSpaceReplace	(const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Replaces 0xd, 0x9 and 0xa with a space.
value
:
a value
Returns
:
the new string or NULL if no change was required.
../bugs.html
Daniel Veillard
