Hi,
I want to know how I can deal with empty attributes, like this example:
<Spiral constant="">
</Spiral>
My Spiral implementation contains this code:
[System::Xml::Serialization::XmlIgnoreAttribute]
bool constantSpecified;
[System::Xml::Serialization::XmlAttributeAttribute]
__property double get_constant();
__property void set_constant(double s);
As you can see, I'm using MC++. But when I try to de-serialize a Spiral
with empty constant, I get an exception: ``There is an error in XML
document (16, 120).'' What can I do? I don't want to change data type from
double to String, if I really don't have to. I don't really need the
constant attribute when de-serializing, but I want to write it when I
serialize.
Thanks for any help!
--
Daniel