Differences From Artifact [56f53a7b7a]:
- File
tests/serialization.xml
— part of check-in
[0a083111c7]
at
2011-12-12 13:32:50
on branch trunk
— Improve serialization of OFXMLElement.
It does not store the namespaces for the prefixes "xml" and "xmlns"
anymore. (user: js, size: 1646) [annotate] [blame] [check-ins using]
To Artifact [b4acfa6af4]:
- File
tests/serialization.xml
— part of check-in
[a6ee2b2065]
at
2012-07-31 12:05:46
on branch trunk
— Slightly changed serialization format.
printf's %a was too fragile to serialize floats and doubles, as it was
behaving differently on different OSes and OS versions. Instead, a hex
representation of the float/double in big endian is used now. While this
is less readable, it is guaranteed to be accurate and always the same. (user: js, size: 1636) [annotate] [blame] [check-ins using]
1 | <?xml version='1.0' encoding='UTF-8'?> | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<?xml version='1.0' encoding='UTF-8'?>
<serialization xmlns='https://webkeks.org/objfw/serialization' version='1'>
<OFMutableDictionary>
<key>
<OFArray>
<OFString>Qu"xbar
test</OFString>
<OFNumber type='signed'>1234</OFNumber>
<OFNumber type='double'>adfa5c6d454a9340</OFNumber>
<OFMutableString>asd</OFMutableString>
<OFDate>adfa5c6d454a9340</OFDate>
</OFArray>
</key>
<object>
<OFString>Hello</OFString>
</object>
<key>
<OFString>Blub</OFString>
|
| ︙ | ︙ |