Re: [xml] Get default values set in schema



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

   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

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



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