Skip to content

Instantly share code, notes, and snippets.

@Kami
Created May 27, 2012 07:41
Show Gist options
  • Select an option

  • Save Kami/2802640 to your computer and use it in GitHub Desktop.

Select an option

Save Kami/2802640 to your computer and use it in GitHub Desktop.
Swiz - serialization example (output - XML)
<?xml version="1.0" encoding="utf-8"?>
<server id="15245" name="server #1">
<is_active>true</is_active>
<agent_name>some agent</agent_name>
<public_ips>
<ip>123.45.55.44</ip>
<ip>122.123.32.2</ip>
</public_ips>
<state>active</state>
<opts>
<serverOpts>
<option1>defaultval</option1>
<option2>defaultval</option2>
<option3>something</option3>
</serverOpts>
</opts>
<data>
<foo>thingone</foo>
<bar>thingtwo</bar>
</data>
</server>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment