Mailinglist Archive: zypp-devel (149 mails)
| < Previous | Next > |
[zypp-devel] zypper's XML being also libzypp's?
- From: Jan Kupec <jkupec@xxxxxxx>
- Date: Thu, 11 Sep 2008 12:05:29 +0200
- Message-id: <48C8ED69.7010202@xxxxxxx>
Hi,
i want to extend zypper's --xmlout somewhat. For example the output of product-info and products commands will need some <product .../> tag with product's attributes.
The code producing this from a zypp::Product object could be probably better placed in libzypp than zypper. In fact i already put ServiceInfo's and RepoInfo's XML representation into libzypp (dumpAsXMLOn(ostream)).
I just wanted to ask whether you would like this approach, where/how to document it.
Currently there is only http://en.opensuse.org/Standards/Zypper_Xml which references http://svn.opensuse.org/svn/zypp/trunk/zypper/src/output/xmlout.rnc , but as soon as we start putting some of the XML methods to libzypp, this will not be sufficient (even some of the existing stuff can be moved from zypper to libzypp).
I suggest to put the .rnc files to libzypp, like we do for parsers (some of them can even be reused). Wiki docs can reference those .rnc files then, as well as other (higher-level) .rnc can include them.
cheers,
jano
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
i want to extend zypper's --xmlout somewhat. For example the output of product-info and products commands will need some <product .../> tag with product's attributes.
The code producing this from a zypp::Product object could be probably better placed in libzypp than zypper. In fact i already put ServiceInfo's and RepoInfo's XML representation into libzypp (dumpAsXMLOn(ostream)).
I just wanted to ask whether you would like this approach, where/how to document it.
Currently there is only http://en.opensuse.org/Standards/Zypper_Xml which references http://svn.opensuse.org/svn/zypp/trunk/zypper/src/output/xmlout.rnc , but as soon as we start putting some of the XML methods to libzypp, this will not be sufficient (even some of the existing stuff can be moved from zypper to libzypp).
I suggest to put the .rnc files to libzypp, like we do for parsers (some of them can even be reused). Wiki docs can reference those .rnc files then, as well as other (higher-level) .rnc can include them.
cheers,
jano
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |