Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
XML-RPC
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Data types== Common [[datatype]]s are converted into their XML equivalents with example values shown below: {| class="wikitable" !Name !Tag Example !Description |- |array | <syntaxhighlight lang="xml"> <array> <data> <value><i4>1404</i4></value> <value><string>Something here</string></value> <value><i4>1</i4></value> </data> </array> </syntaxhighlight> |[[Array data structure|Array]] of values, storing no keys |- |base64 | <syntaxhighlight lang="xml"> <base64>eW91IGNhbid0IHJlYWQgdGhpcyE=</base64> </syntaxhighlight> |[[Base64]]-encoded binary data |- |boolean | <syntaxhighlight lang="xml"> <boolean>1</boolean> </syntaxhighlight> |[[Boolean data type|Boolean]] logical value (0 or 1) |- |date/time | <syntaxhighlight lang="xml"> <dateTime.iso8601>19980717T14:08:55Z</dateTime.iso8601> </syntaxhighlight> |Date and time in [[ISO 8601]] format |- |double | <syntaxhighlight lang="xml"> <double>-12.53</double> </syntaxhighlight> |[[Double precision]] floating point number |- |integer | <syntaxhighlight lang="xml"> <int>42</int> </syntaxhighlight> or <syntaxhighlight lang="xml"> <i4>42</i4> </syntaxhighlight> |Signed [[integer]] coded on 4 bytes |- |string | <syntaxhighlight lang="xml"> <string>Hello world!</string> </syntaxhighlight> or <syntaxhighlight lang="xml"> Hello world! </syntaxhighlight> |String of characters. Must follow [[XML#Characters and escaping|XML encoding]]. |- |struct | <syntaxhighlight lang="xml"> <struct> <member> <name>foo</name> <value><i4>1</i4></value> </member> <member> <name>bar</name> <value><i4>2</i4></value> </member> </struct> </syntaxhighlight> |[[Associative array]] |- |nil | <syntaxhighlight lang="xml"> <nil/> </syntaxhighlight> |[[nullable type|Discriminated null value]]; an XML-RPC [https://web.archive.org/web/20050911054235/http://ontosys.com/xml-rpc/extensions.php extension] | |- |long | <syntaxhighlight lang="xml"> <i8>1312</i8> </syntaxhighlight> |Signed integer coded on 8 bytes. This is not part of the specification, but it is supported by several XML-RPC implementations<ref>{{cite web |title=RPC::XML - A set of classes for core data, message and XML handling - metacpan.org |url=https://metacpan.org/pod/RPC::XML |access-date=13 April 2025}}</ref>{{,}}<ref>{{cite web |title=User manual for XML-RPC For C/C++ |url=https://xmlrpc-c.sourceforge.io/doc/libgeneral.html |access-date=13 April 2025}}</ref> |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)