[one-users] RPC c++ client: how to turn the XML output into something useful?
Carlos Martín Sánchez
cmartin at opennebula.org
Wed Nov 23 07:19:03 PST 2011
Hi,
I don't see why you would want to write your own XML parser, you can use
any existing one...
We use libxml [1]. You can see some code in our repository [2, 3]
Regards
[1] http://xmlsoft.org/
[2]
http://dev.opennebula.org/projects/opennebula/repository/revisions/master/show/src/scheduler
[3]
http://dev.opennebula.org/projects/opennebula/repository/revisions/master/entry/src/xml/ObjectXML.cc
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
On Tue, Nov 22, 2011 at 7:56 PM, Ismael Farfán <sulfurfff at gmail.com> wrote:
> So no one?
>
> I think there should be a recommended library or something for working
> with xml in c++, just as ONE recommends xmlrpc-c for the RPC calls,
> which one do you use?
>
> I only want to get the information out of the xml string I'm
> getting... I could write my own parser but I'm hoping there is a
> better (and standard) way.
>
> All the best
> Ismael
>
> 2011/11/21 Ismael Farfán <sulfurfff at gmail.com>:
> > Hello list
> >
> > I'm programming a client for ONE using c++, the first function I'm
> > testing is one.hostpool.info.
> >
> > Using an example I found, I can retrieve the xml list of hosts,
> > however I don't know how to work with xml and this example is too
> > basic (and old) to be of more use.
> > http://www.opennebula.org/documentation:archives:rel1.2:api_examples
> >
> > I'd appreciate very much if someone could tell me how to retrieve the
> > information I need which right now is host id, name and status.
> >
> > Regards
> > Ismael
> >
> >
> > I'm using Debian/testing
> >
> > --
> > Do not let me induce you to satisfy my curiosity, from an expectation,
> > that I shall gratify yours. What I may judge proper to conceal, does
> > not concern myself alone.
> >
>
>
>
> --
> Do not let me induce you to satisfy my curiosity, from an expectation,
> that I shall gratify yours. What I may judge proper to conceal, does
> not concern myself alone.
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111123/fc711070/attachment-0003.htm>
More information about the Users
mailing list