473,388 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

[Q] Extracting the key members of an XmlRpcValue object (C++)

I need to be able to extract the values from an XmlRpcValue where I do
not know in advance what the keys are, or how many exist. For example,
suppose I have an XmlRpcValue, xmlVal, returned by some xml-rpc method,
XmlRpc::XmlRpcValue xmlVal = some_xmlrpc_method(...);
std::cout << xmlVal << std::endl;
yields the following:
{
eventType: "BIRTH",
mother: "Michelle",
gender: "MALE"
}
Knowing the keys (i.e., 'eventType', 'mother', and 'gender') extracting
the value (i.e., "BIRTH", "Michelle", or "MALE") is straightfoward.
However, suppose I do not know what are the keys? What code could write
to obtain key for each member? In other words, what code do implement
that, when executed, will return the string "eventType", "mother", or
"gender".

Thanks, in advance,

Michael

Jul 20 '05 #1
0 1169

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ian Rastall | last post by:
Ah, I hope it's okay to keep posting questions, and sorry for the vague subject line. This is my problem: I've got a database set up with 7 fields: ID, Album, Year, Type, Songs, Members,...
2
by: mtp1032 | last post by:
I need to be able to extract the values from an XmlRpcValue where I do not know in advance what the keys are, or how many exist. For example, suppose I have an XmlRpcValue, object, returned by...
17
by: James S. Singleton | last post by:
Let S be a pointer to a bytestring of length L. I would like to extract 4 bytes from S at the location p = S + d, with 0 < d < L - 4, and store them into an unsigned int. I am looking for...
4
by: Curious | last post by:
Hi, I have a class with properties and each property has specific datatypes. Is it possible to extract the datatypes of each property found in a class? I would like to extract these...
11
by: Kevin Prichard | last post by:
Hi all, I've recently been following the object-oriented techiques discussed here and have been testing them for use in a web application. There is problem that I'd like to discuss with you...
14
by: Adnan Siddiqi | last post by:
Hi Suppose I have following URLs comming from an HTML document <a href="http://mydomain1.com">Domain1</a> <a...
4
by: Rex | last post by:
I want to find out as much as I can using JavaScript about the user's browser and possible about the user himself or herself. is there a good guide anywhere on the Internet that explains what...
4
by: dexter48 | last post by:
Hi I'm searching for a string occurance in a text file. I find the string ok and write the results to a log file. But on the line above is also some information I need. How can i get that. The string...
2
by: avik1612 | last post by:
hi, I have created a script in perl to extract n number of zip files to a particular destination after creating the folder of the zip file. It is extracting . But when the zip file has...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.