Re: [xml] Default value of attribute element
- From: Rob Richards <rrichards ctindustries net>
- To: Laurent Marzullo <laurent marzu org>
- Cc: xml gnome org
- Subject: Re: [xml] Default value of attribute element
- Date: Fri, 20 Jul 2007 10:08:49 -0400
You try using the XML_PARSE_DTDATTR option?
Rob
Laurent Marzullo wrote:
Hello all,
Is there a way to have an xml node attribute to be filled automatically
according to DTD definition ?
For example, if I've the following DTD declaration:
<!ELEMENT myelt (#PCDATA)>
<!ATTLST myelt attr1 CDATA #FIXED "fixed-value" >
I want to have an attribute attr1 into the xmlNode 'myelt', even if I do not
specify it into the xml file. For now, when looking at myelt->properties, it's
NULL.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]