Subject: How to write/read a compressed or zipped string to an xml element
Hi Alex,
I'd like to write a compressed or zipped (own algorithm) part of an xmpp-xml tree in an xml element as its value.
transport it over the net, decompress the compressed xmpp-xml tree and use the whole tree as normal xmpp xml in my code.
e.g.
<Person>
<Lastname>Bach<Lastname>
<Age>42</Age>
<CompressedAddress>
compressed_xml_tree_string
<CompressedAddress>
</Person>
where compressed_xml_tree_string is the xml tree as a compressed string value
e.g.
compressed_xml_tree_string =
"<Address>
<Strasse>Wallstreet</Strasse>
<Hausnr>45</Hausnr>
</Address>"
The string seems to be written as
<Address>
<Strasse>Wallstreet</Strasse>
<Hausnr>45</Hausnr>
</Address>
Is there an elegant way to do this with MatriX for Net without the control characters (< >) which appear in my text string?
Thank you
Martin
I'd like to write a compressed or zipped (own algorithm) part of an xmpp-xml tree in an xml element as its value.
transport it over the net, decompress the compressed xmpp-xml tree and use the whole tree as normal xmpp xml in my code.
e.g.
<Person>
<Lastname>Bach<Lastname>
<Age>42</Age>
<CompressedAddress>
compressed_xml_tree_string
<CompressedAddress>
</Person>
where compressed_xml_tree_string is the xml tree as a compressed string value
e.g.
compressed_xml_tree_string =
"<Address>
<Strasse>Wallstreet</Strasse>
<Hausnr>45</Hausnr>
</Address>"
The string seems to be written as
<Address>
<Strasse>Wallstreet</Strasse>
<Hausnr>45</Hausnr>
</Address>
Is there an elegant way to do this with MatriX for Net without the control characters (< >) which appear in my text string?
Thank you
Martin
martinbach
Show profile
Link to this post