This file is indexed.

/usr/share/zypper/xml/xmlout.rnc is in zypper-common 1.11.13-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
# !! still WORK IN PROGRESS (untill 11.1 freeze) !!
# namespace zypper

start = stream-element

stream-element =
  element stream {
    (
      # common stuff (progress, messages, prompts, status)
      progress-elements* | download-progress-elements* | message-element* | prompt-element* |

      # special stuff (updates list, installation summary, search output, info)
      update-status-element* |   # for zypper list-updates
      install-summary-element* | # for zypper install/remove/update
      repo-list-element? |       # for zypper repos
      service-list-element? |
      selectable-list-element? |
      search-result-element? |   # for zypper search
      selectable-info-element? | # for zypper info

      # random text can appear between tags - this text should be ignored
      text
    )+
  }

progress-elements = ( progress-element | progress-done )

progress-element =
  element progress {
    attribute id { xsd:string },
    attribute name { xsd:string },
    attribute value { xsd:integer }? # missing value means an 'is alive' notification
  }

progress-done =
  element progress {
    attribute id { xsd:string },
    attribute name { xsd:string },
    attribute done { xsd:boolean } # 0 on success, 1 on error
  }

download-progress-elements = ( download-progress-element | download-progress-done )

download-progress-element =
  element download {
    attribute url { xsd:string },
    attribute percent { xsd:integer },
    attribute rate { xsd:integer } # download rate in bytes per second
  }

download-progress-done =
  element download {
    attribute url { xsd:string },
    attribute rate { xsd:integer }, # download rate in bytes per second
    attribute done { xsd:boolean } # 0 on success, 1 on error
  }

message-element =
  element message {
    attribute type { "info" | "warning" | "error" }, # considering yet another type "result", maybe a separate <result> element
    text
  }

prompt-element =
  element prompt {
    attribute id { xsd:integer },
    element description { text },
    element text { text },
    element option {
      attribute default { xsd:boolean }?,
      attribute value { xsd:string },
      attribute desc { xsd:string }?
    }*
  }

update-status-element =
  element update-status {
    attribute version {xsd:string},
    element update-list { ( patch-update | other-update )* }
  }

update-commons =
  attribute name { xsd:string },
  attribute edition { xsd:string },
  attribute arch { xsd:string },
  element summary { text },
  element description { text },
  element license { text },
  element source { # repository
    attribute url { xsd:anyURI },
    attribute alias { xsd:string }
  }

other-update =
  element update {
    update-commons,
    attribute kind { "package" | "pattern" | "product" }
  }

patch-update =
  element update {
    update-commons,
    attribute kind { "patch" },
    attribute status { "needed" | "unwanted" | "applied" | "not-needed" | "undetermined" }?, #
    attribute category { xsd:string }?,   # patch category (security, recommended, ...)
    attribute pkgmanager { xsd:boolean }, # affect package management?
    attribute restart { xsd:boolean },    # needs restart of the machine?
    attribute interactive { xsd:boolean } # needs user interaction?
  }

search-result-element =
  element search-result {
    attribute version {xsd:string},
    solvable-list-element
  }

solvable-list-element =
  element solvable-list {
    solvable-element*
  }

solvable-element =
  element solvable {
    attribute status { "installed" | "other-version" | "not-installed" },
    attribute kind { "package" | "patch" | "pattern" | "product" },
    attribute name { xsd:string },
    attribute edition { xsd:string },      # target edition
    attribute edition-old { xsd:string }?, # currently installed version in case of upgrade
    attribute arch { xsd:string },
    attribute arch-old { xsd:string }?,    # currently installed architecture
    attribute summary { xsd:string }?,
    attribute repository { xsd:string }?,
    text?
  }

selectable-element =
  element selectable {
    solvable-element+
  }

install-summary-element =
  element install-summary {
    attribute download-size { xsd:integer },    # download size in bytes
    attribute space-usage-diff { xsd:integer }, # used space before vs. after install difference in bytes
    (
      element to-install { solvable-element+ } |
      element to-remove { solvable-element+ } |
      element to-upgrade { solvable-element+ } |
      element to-downgrade { solvable-element+ } |
      element to-upgrade-change-arch { solvable-element+ } |
      element to-downgrade-change-arch { solvable-element+ } |
      element to-reinstall { solvable-element+ } |
      element to-change-arch { solvable-element+ }
    )*
  }


repo-element =
  element repo {
    attribute alias { xsd:string },
    attribute name { xsd:string }?,
    attribute type { xsd:string }?,
    attribute enabled { xsd:boolean }?,
    attribute priority { xsd:nonNegativeInteger }?,
    attribute autorefresh { xsd:boolean }?,
    attribute gpgcheck { xsd:boolean }?,
    attribute gpgkey { xsd:anyURI }?,
    attribute mirrorlist { xsd:anyURI }?,
    element url { xsd:anyURI }+
  }

repo-list-element =
  element repo-list {
    repo-element*
  }

service-list-element =
  element service-list {
    element service {
      attribute alias { xsd:string },
      attribute name { xsd:string }?,
      attribute enabled { xsd:boolean }?,
      attribute autorefresh { xsd:boolean }?,
      attribute url { xsd:anyURI },
      attribute type { xsd:string }?,
      repo-element*
    }*,
    repo-element*
  }

selectable-list-element =
  element selectable-list {
    selectable-element*
  }

selectable-info-element =
  element selectable-info {
    common-selectable-info &
    (
      package-selectable-info |
      patch-selectable-info
      #pattern-selectable-info |
      #product-selectable-info
    )
  }

# TODO
common-selectable-info =
  attribute installed { xsd:boolean },
  solvable-element+

# TODO
package-selectable-info =
  attribute status { "up-to-date" | "out-of-date" }

# TODO
patch-selectable-info =
  attribute status {
    "installed" | "not-installed" | "not-applicable" | "no-longer-applicable" |
    "applied" | "not-needed" | "broken" | "needed"
  }