Re: [xml] Get default values set in schema

On Fri, May 20, 2011 at 02:54:53PM -0400, preet $ wrote:

   I am able to read the xml and validate it against a schema, I use the
xmlReadFile and xmlSchemaValidateDoc to read the xml and validate it. I want
to set the default value to the attributes, if empty.  *I want to know how
can I get the default values from the attributes in the schema*. Any help
would be great..

  Well, libxml2 doesn't implement the PSVI support of XSD validation,
so there is no way (unless I really missed something) to have what
what you suggest from libxml2 XSD support.


Daniel Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]