mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
XmlRpc: <nil/> support
git-svn-id: svn://ultimatepp.org/upp/trunk@2000 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
d498509aae
commit
abbd1a68b9
1 changed files with 6 additions and 0 deletions
|
|
@ -30,6 +30,9 @@ Value ParseXmlRpcValue(XmlParser& p)
|
|||
if(p.Tag("string") || p.Tag("base64"))
|
||||
r = p.ReadText();
|
||||
else
|
||||
if(p.TagE("nil"))
|
||||
;
|
||||
else
|
||||
if(p.Tag("dateTime.iso8601")) {
|
||||
String s = TrimBoth(p.ReadText());
|
||||
// 19980717T14:08:55
|
||||
|
|
@ -92,6 +95,9 @@ ValueArray ParseXmlRpcParams(XmlParser& p)
|
|||
String FormatXmlRpcValue(const Value& v)
|
||||
{
|
||||
String r;
|
||||
if(v.GetType() == VOID_V)
|
||||
r = XmlTag("nil")();
|
||||
else
|
||||
if(v.GetType() == INT_V)
|
||||
r = XmlTag("int")(Format("%d", (int)v));
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue