Feb 12, 2013

openSUSE Forums: xml to delimited text/spreadsheet script?

openSUSE Forums
openSUSE Forums
xml to delimited text/spreadsheet script?
Feb 13th 2013, 00:39

I don't suppose anyone has a script already that automatically pulls apart the opensuse xml package lists and reformats into a delimited text / spreadsheet format ?

something like:

from:

<package type="rpm">
<name>anjuta-lang</name>
<arch>noarch</arch>
<version epoch="0" ver="3.2.1" rel="1.2"/>
<checksum type="sha256" pkgid="YES">73edc6ea595c0e1cb96c79e4a941055b257b01c6feb79aa91888533cd66b3cb7</checksum>
<summary>Languages for package anjuta</summary>
<description>Provides translations to the package anjuta</description>
<packager>http://bugs.opensuse.org</packager>
<url>http://anjuta.sourceforge.net/</url>
<time file="1319960406" build="1319960214"/>
<size package="1619186" installed="10182539" archive="10331192"/>
<location href="noarch/anjuta-lang-3.2.1-1.2.noarch.rpm"/>
<format>
<rpm:license>GPLv2+</rpm:license>
<rpm:vendor>openSUSE</rpm:vendor>
<rpm:group>System/Localization</rpm:group>
<rpm:buildhost>build24</rpm:buildhost>
<rpm:sourcerpm>anjuta-3.2.1-1.2.src.rpm</rpm:sourcerpm>
<rpm:header-range start="872" end="131639"/>
<rpm:provides>
<rpm:entry name="anjuta-lang-all" flags="EQ" epoch="0" ver="3.2.1"/>
<rpm:entry name="anjuta-lang" flags="EQ" epoch="0" ver="3.2.1" rel="1.2"/>
</rpm:provides>
<rpm:requires>
<rpm:entry name="anjuta" flags="EQ" epoch="0" ver="3.2.1"/>
</rpm:requires>
<rpm:supplements>
<rpm:entry name="packageand(bundle-lang-other:anjuta)"/>
</rpm:supplements>

</format>
</package>

into:

name|arch|version-rel|summary| ......


thanks

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

No comments: