A
ashish.sadanandan
Hi,
I'm new to XML and just started reading some documentation on W3C
compliant schemas recently. The XML file I'm generating is for an
embedded application and so size is of extreme importance. The
information I want to save in this XML file is the attributes of the
members of a structure.
Now lets say there is a member variable that is an array (of length
10), so I'd want the following line in that variable's attributes:
<width>10</width>
Now if I have another variable that is not an array then I'd like to
avoid the width specification altogether rather than have:
<width>1</width>
Does the W3C schema support a variable number of attributes so that
the parser can assign default values for the missing attributes? If it
doesn't then can someone please point me to a schema format and a
parser that does support this?
I am currently planning on using the Xerxes parser.
Thanks in advance,
Ashish.
I'm new to XML and just started reading some documentation on W3C
compliant schemas recently. The XML file I'm generating is for an
embedded application and so size is of extreme importance. The
information I want to save in this XML file is the attributes of the
members of a structure.
Now lets say there is a member variable that is an array (of length
10), so I'd want the following line in that variable's attributes:
<width>10</width>
Now if I have another variable that is not an array then I'd like to
avoid the width specification altogether rather than have:
<width>1</width>
Does the W3C schema support a variable number of attributes so that
the parser can assign default values for the missing attributes? If it
doesn't then can someone please point me to a schema format and a
parser that does support this?
I am currently planning on using the Xerxes parser.
Thanks in advance,
Ashish.