Artifact 7633105928e84d021242c570f62b14373e1db8dddd49980143dcc52f2945c226:
- File
tests/serialization.xml
— part of check-in
[301ee63212]
at
2011-11-20 18:41:25
on branch trunk
— Make OFString a class cluster.
It is a class cluster now, but there is still much to improve. (user: js, size: 2805) [annotate] [blame] [check-ins using]
<?xml version='1.0' encoding='UTF-8'?> <serialization xmlns='https://webkeks.org/objfw/serialization' version='0'> <OFMutableDictionary> <key> <OFList> <OFString>Hello</OFString> <OFString>Wo
ld! How are you?</OFString> <OFURL>https://webkeks.org/</OFURL> <OFXMLElement name='x'> <namespaces> <OFMutableDictionary> <key> <OFString>http://www.w3.org/2000/xmlns/</OFString> </key> <object> <OFString>xmlns</OFString> </object> <key> <OFString>http://www.w3.org/XML/1998/namespace</OFString> </key> <object> <OFString>xml</OFString> </object> </OFMutableDictionary> </namespaces> <children> <OFMutableArray> <OFXMLElement name='y'> <namespaces> <OFMutableDictionary> <key> <OFString>http://www.w3.org/2000/xmlns/</OFString> </key> <object> <OFString>xmlns</OFString> </object> <key> <OFString>http://www.w3.org/XML/1998/namespace</OFString> </key> <object> <OFString>xml</OFString> </object> </OFMutableDictionary> </namespaces> </OFXMLElement> <OFXMLCDATA><![CDATA[<]]></OFXMLCDATA> </OFMutableArray> </children> </OFXMLElement> <OFSet> <OFString>bar</OFString> <OFString>foo</OFString> </OFSet> <OFCountedSet> <object count='1'> <OFString>bar</OFString> </object> <object count='2'> <OFString>foo</OFString> </object> </OFCountedSet> </OFList> </key> <object> <OFString>list</OFString> </object> <key> <OFArray> <OFString>Qu"xbar test</OFString> <OFNumber type='signed'>1234</OFNumber> <OFNumber type='double'>0x1.34a456d5cfaadp+10</OFNumber> <OFMutableString>asd</OFMutableString> <OFDate>0x1.34a456d5cfaadp+10</OFDate> </OFArray> </key> <object> <OFString>Hello</OFString> </object> <key> <OFDataArray>MDEyMzQ1Njc4OTo7PEFCQ0RFRkdISklLTE1OT1BRUlNUVVZXWFla</OFDataArray> </key> <object> <OFString>data</OFString> </object> <key> <OFString>Blub</OFString> </key> <object> <OFString>B"la</OFString> </object> </OFMutableDictionary> </serialization>