  
    
    
    
    
    
    
    
  
  
    
      
        
          
libxml2-xmlschemas.html            
Prev          
        
        
          
general.html            
Up          
        
        
          
index.html            
Home          
        
        
          
libxml2-xmlstring.html            
Next          
        
        
libxml2 Reference Manual      
    
    
      
xmlschemastypes    
    
xmlschemastypes - implementation of XML Schema Datatypes
    
module providing the XML Schema Datatypes implementation both definition and validity checking 
    
Author(s): Daniel Veillard 
    
      
Synopsis
      
typedef enum #xmlSchemaWhitespaceValueTypexmlSchemaWhitespaceValueType ;
int	
#xmlSchemaValPredefTypeNodexmlSchemaValPredefTypeNode 	( libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  type, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  * val, 					 libxml2-tree.html#xmlNodePtrxmlNodePtr  node);
int	
#xmlSchemaGetCanonValueWhtspxmlSchemaGetCanonValueWhtsp 	( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val, 					 const libxml2-xmlstring.html#xmlCharxmlChar  ** retValue, 					 libxml2-xmlschemastypes.html#xmlSchemaWhitespaceValueTypexmlSchemaWhitespaceValueType  ws);
int	
#xmlSchemaValidateLengthFacetWhtspxmlSchemaValidateLengthFacetWhtsp 	( libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet, 						 libxml2-schemasInternals.html#xmlSchemaValTypexmlSchemaValType  valType, 						 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 						 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val, 						 unsigned long * length, 						 libxml2-xmlschemastypes.html#xmlSchemaWhitespaceValueTypexmlSchemaWhitespaceValueType  ws);
int	
#xmlSchemaIsBuiltInTypeFacetxmlSchemaIsBuiltInTypeFacet 	( libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  type, 					 int facetType);
int	
#xmlSchemaGetCanonValuexmlSchemaGetCanonValue 		( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val, 					 const libxml2-xmlstring.html#xmlCharxmlChar  ** retValue);
libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr 	#xmlSchemaGetBuiltInListSimpleTypeItemTypexmlSchemaGetBuiltInListSimpleTypeItemType 	( libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  type);
int	
#xmlSchemaCompareValuesWhtspxmlSchemaCompareValuesWhtsp 	( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  x, 					 libxml2-xmlschemastypes.html#xmlSchemaWhitespaceValueTypexmlSchemaWhitespaceValueType  xws, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  y, 					 libxml2-xmlschemastypes.html#xmlSchemaWhitespaceValueTypexmlSchemaWhitespaceValueType  yws);
int	
#xmlSchemaValueGetAsBooleanxmlSchemaValueGetAsBoolean 	( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val);
libxml2-xmlstring.html#xmlCharxmlChar  *	#xmlSchemaCollapseStringxmlSchemaCollapseString 	(const libxml2-xmlstring.html#xmlCharxmlChar  * value);
int	
#xmlSchemaValPredefTypeNodeNoNormxmlSchemaValPredefTypeNodeNoNorm 	( libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  type, 						 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 						 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  * val, 						 libxml2-tree.html#xmlNodePtrxmlNodePtr  node);
int	
#xmlSchemaValidateFacetxmlSchemaValidateFacet 		( libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  base, 					 libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val);
libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr 	#xmlSchemaNewFacetxmlSchemaNewFacet 	(void);
int	
#xmlSchemaValueAppendxmlSchemaValueAppend 		( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  prev, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  cur);
int	
#xmlSchemaCompareValuesxmlSchemaCompareValues 		( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  x, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  y);
int	
#xmlSchemaValidateLengthFacetxmlSchemaValidateLengthFacet 	( libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  type, 					 libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val, 					 unsigned long * length);
libxml2-schemasInternals.html#xmlSchemaValTypexmlSchemaValType 	#xmlSchemaGetValTypexmlSchemaGetValType 	( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val);
libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr 	#xmlSchemaGetPredefinedTypexmlSchemaGetPredefinedType 	(const libxml2-xmlstring.html#xmlCharxmlChar  * name, 							 const libxml2-xmlstring.html#xmlCharxmlChar  * ns);
int	
#xmlSchemaValidatePredefinedTypexmlSchemaValidatePredefinedType 	( libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  type, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  * val);
void	
#xmlSchemaFreeFacetxmlSchemaFreeFacet 		( libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet);
int	
#xmlSchemaValidateListSimpleTypeFacetxmlSchemaValidateListSimpleTypeFacet 	( libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet, 						 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 						 unsigned long actualLen, 						 unsigned long * expectedLen);
unsigned long	
#xmlSchemaGetFacetValueAsULongxmlSchemaGetFacetValueAsULong 	( libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet);
void	
#xmlSchemaFreeValuexmlSchemaFreeValue 		( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  value);
libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr 	#xmlSchemaValueGetNextxmlSchemaValueGetNext 	( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  cur);
const 
libxml2-xmlstring.html#xmlCharxmlChar  *	#xmlSchemaValueGetAsStringxmlSchemaValueGetAsString 	( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val);
libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr 	#xmlSchemaCopyValuexmlSchemaCopyValue 	( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val);
libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr 	#xmlSchemaNewNOTATIONValuexmlSchemaNewNOTATIONValue 	(const libxml2-xmlstring.html#xmlCharxmlChar  * name, 						 const libxml2-xmlstring.html#xmlCharxmlChar  * ns);
libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr 	#xmlSchemaNewQNameValuexmlSchemaNewQNameValue 	(const libxml2-xmlstring.html#xmlCharxmlChar  * namespaceName, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * localName);
void	
#xmlSchemaCleanupTypesxmlSchemaCleanupTypes 		(void);
libxml2-xmlstring.html#xmlCharxmlChar  *	#xmlSchemaWhiteSpaceReplacexmlSchemaWhiteSpaceReplace 	(const libxml2-xmlstring.html#xmlCharxmlChar  * value);
libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr 	#xmlSchemaNewStringValuexmlSchemaNewStringValue 	( libxml2-schemasInternals.html#xmlSchemaValTypexmlSchemaValType  type, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * value);
libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr 	#xmlSchemaGetBuiltInTypexmlSchemaGetBuiltInType 	( libxml2-schemasInternals.html#xmlSchemaValTypexmlSchemaValType  type);
void	
#xmlSchemaInitTypesxmlSchemaInitTypes 		(void);
int	
#xmlSchemaValidateFacetWhtspxmlSchemaValidateFacetWhtsp 	( libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet, 					 libxml2-xmlschemastypes.html#xmlSchemaWhitespaceValueTypexmlSchemaWhitespaceValueType  fws, 					 libxml2-schemasInternals.html#xmlSchemaValTypexmlSchemaValType  valType, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val, 					 libxml2-xmlschemastypes.html#xmlSchemaWhitespaceValueTypexmlSchemaWhitespaceValueType  ws);
int	
#xmlSchemaCheckFacetxmlSchemaCheckFacet 		( libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet, 					 libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  typeDecl, 					 libxml2-xmlschemas.html#xmlSchemaParserCtxtPtrxmlSchemaParserCtxtPtr  pctxt, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * name);
    
    
      
Description
    
    
      
Details
      
        
Enum xmlSchemaWhitespaceValueType
enum #xmlSchemaWhitespaceValueTypexmlSchemaWhitespaceValueType  {
    
XML_SCHEMA_WHITESPACE_UNKNOWN  = 0
    
XML_SCHEMA_WHITESPACE_PRESERVE  = 1
    
XML_SCHEMA_WHITESPACE_REPLACE  = 2
    
XML_SCHEMA_WHITESPACE_COLLAPSE  = 3
};
        
        
xmlSchemaCheckFacet ()
int	xmlSchemaCheckFacet		( libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet, 					 libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  typeDecl, 					 libxml2-xmlschemas.html#xmlSchemaParserCtxtPtrxmlSchemaParserCtxtPtr  pctxt, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * 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.         
        
xmlSchemaCleanupTypes ()
void	xmlSchemaCleanupTypes		(void)Cleanup the default XML Schemas type library
        
        
xmlSchemaCollapseString ()
libxml2-xmlstring.html#xmlCharxmlChar  *	xmlSchemaCollapseString	(const libxml2-xmlstring.html#xmlCharxmlChar  * value)Removes and normalize white spaces in the string
value: a value Returns: the new string or NULL if no change was required.         
        
xmlSchemaCompareValues ()
int	xmlSchemaCompareValues		( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  x, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  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         
        
xmlSchemaCompareValuesWhtsp ()
int	xmlSchemaCompareValuesWhtsp	( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  x, 					 libxml2-xmlschemastypes.html#xmlSchemaWhitespaceValueTypexmlSchemaWhitespaceValueType  xws, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  y, 					 libxml2-xmlschemastypes.html#xmlSchemaWhitespaceValueTypexmlSchemaWhitespaceValueType  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         
        
xmlSchemaCopyValue ()
libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr 	xmlSchemaCopyValue	( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  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.         
        
xmlSchemaFreeFacet ()
void	xmlSchemaFreeFacet		( libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet)Deallocate a Schema Facet structure.
facet: a schema facet structure         
        
xmlSchemaFreeValue ()
void	xmlSchemaFreeValue		( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  value)Cleanup the default XML Schemas type library
value: the value to free         
        
xmlSchemaGetBuiltInListSimpleTypeItemType ()
libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr 	xmlSchemaGetBuiltInListSimpleTypeItemType	( libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  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.         
        
xmlSchemaGetBuiltInType ()
libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr 	xmlSchemaGetBuiltInType	( libxml2-schemasInternals.html#xmlSchemaValTypexmlSchemaValType  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.         
        
xmlSchemaGetCanonValue ()
int	xmlSchemaGetCanonValue		( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val, 					 const libxml2-xmlstring.html#xmlCharxmlChar  ** 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.         
        
xmlSchemaGetCanonValueWhtsp ()
int	xmlSchemaGetCanonValueWhtsp	( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val, 					 const libxml2-xmlstring.html#xmlCharxmlChar  ** retValue, 					 libxml2-xmlschemastypes.html#xmlSchemaWhitespaceValueTypexmlSchemaWhitespaceValueType  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.         
        
xmlSchemaGetFacetValueAsULong ()
unsigned long	xmlSchemaGetFacetValueAsULong	( libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet)Extract the value of a facet
facet: an schemas type facet Returns: the value as a long         
        
xmlSchemaGetPredefinedType ()
libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr 	xmlSchemaGetPredefinedType	(const libxml2-xmlstring.html#xmlCharxmlChar  * name, 							 const libxml2-xmlstring.html#xmlCharxmlChar  * 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         
        
xmlSchemaGetValType ()
libxml2-schemasInternals.html#xmlSchemaValTypexmlSchemaValType 	xmlSchemaGetValType	( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val)Accessor for the type of a value
val: a schemas value Returns: the libxml2-schemasInternals.html#xmlSchemaValTypexmlSchemaValType  of the value         
        
xmlSchemaInitTypes ()
void	xmlSchemaInitTypes		(void)Initialize the default XML Schemas type library
        
        
xmlSchemaIsBuiltInTypeFacet ()
int	xmlSchemaIsBuiltInTypeFacet	( libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  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.         
        
xmlSchemaNewFacet ()
libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr 	xmlSchemaNewFacet	(void)Allocate a new Facet structure.
Returns: the newly allocated structure or NULL in case or error         
        
xmlSchemaNewNOTATIONValue ()
libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr 	xmlSchemaNewNOTATIONValue	(const libxml2-xmlstring.html#xmlCharxmlChar  * name, 						 const libxml2-xmlstring.html#xmlCharxmlChar  * 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         
        
xmlSchemaNewQNameValue ()
libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr 	xmlSchemaNewQNameValue	(const libxml2-xmlstring.html#xmlCharxmlChar  * namespaceName, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * 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.         
        
xmlSchemaNewStringValue ()
libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr 	xmlSchemaNewStringValue	( libxml2-schemasInternals.html#xmlSchemaValTypexmlSchemaValType  type, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * 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         
        
xmlSchemaValPredefTypeNode ()
int	xmlSchemaValPredefTypeNode	( libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  type, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  * val, 					 libxml2-tree.html#xmlNodePtrxmlNodePtr  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.         
        
xmlSchemaValPredefTypeNodeNoNorm ()
int	xmlSchemaValPredefTypeNodeNoNorm	( libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  type, 						 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 						 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  * val, 						 libxml2-tree.html#xmlNodePtrxmlNodePtr  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.         
        
xmlSchemaValidateFacet ()
int	xmlSchemaValidateFacet		( libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  base, 					 libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  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.         
        
xmlSchemaValidateFacetWhtsp ()
int	xmlSchemaValidateFacetWhtsp	( libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet, 					 libxml2-xmlschemastypes.html#xmlSchemaWhitespaceValueTypexmlSchemaWhitespaceValueType  fws, 					 libxml2-schemasInternals.html#xmlSchemaValTypexmlSchemaValType  valType, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val, 					 libxml2-xmlschemastypes.html#xmlSchemaWhitespaceValueTypexmlSchemaWhitespaceValueType  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.         
        
xmlSchemaValidateLengthFacet ()
int	xmlSchemaValidateLengthFacet	( libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  type, 					 libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  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.         
        
xmlSchemaValidateLengthFacetWhtsp ()
int	xmlSchemaValidateLengthFacetWhtsp	( libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet, 						 libxml2-schemasInternals.html#xmlSchemaValTypexmlSchemaValType  valType, 						 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 						 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  val, 						 unsigned long * length, 						 libxml2-xmlschemastypes.html#xmlSchemaWhitespaceValueTypexmlSchemaWhitespaceValueType  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.         
        
xmlSchemaValidateListSimpleTypeFacet ()
int	xmlSchemaValidateListSimpleTypeFacet	( libxml2-schemasInternals.html#xmlSchemaFacetPtrxmlSchemaFacetPtr  facet, 						 const libxml2-xmlstring.html#xmlCharxmlChar  * 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.         
        
xmlSchemaValidatePredefinedType ()
int	xmlSchemaValidatePredefinedType	( libxml2-schemasInternals.html#xmlSchemaTypePtrxmlSchemaTypePtr  type, 					 const libxml2-xmlstring.html#xmlCharxmlChar  * value, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  * 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.         
        
xmlSchemaValueAppend ()
int	xmlSchemaValueAppend		( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  prev, 					 libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  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.         
        
xmlSchemaValueGetAsBoolean ()
int	xmlSchemaValueGetAsBoolean	( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  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.         
        
xmlSchemaValueGetAsString ()
const libxml2-xmlstring.html#xmlCharxmlChar  *	xmlSchemaValueGetAsString	( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  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.         
        
xmlSchemaValueGetNext ()
libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr 	xmlSchemaValueGetNext	( libxml2-schemasInternals.html#xmlSchemaValPtrxmlSchemaValPtr  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.         
        
xmlSchemaWhiteSpaceReplace ()
libxml2-xmlstring.html#xmlCharxmlChar  *	xmlSchemaWhiteSpaceReplace	(const libxml2-xmlstring.html#xmlCharxmlChar  * value)Replaces 0xd, 0x9 and 0xa with a space.
value: a value Returns: the new string or NULL if no change was required.         
      
    
  
