[KPhotoAlbum] [Bug 214816] New: Error with new XML Format if tag-name contains characters that are not valid as XML Tags

Jesper K. Pedersen blackie at kde.org
Mon Nov 16 15:43:55 GMT 2009


Seems like you checked the "Choose speed over readability for index.xml on the 
Dtabase backend tab in the settings dialog.

Cheers
Jesper.

On Monday 16 November 2009 16:32:58 Dominik Stadler wrote:
| Hi,
| 
| the change in format is as follows:
| 
| previously a tag in the index.xml looked as follows:
| 
|   <image width="1600" startDate="2001-01-01T13:30:07" height="1200"
| md5sum="aeee29c985d036f97ef53ef2811995a9" file="Paul, Lara und
| Samuel/dscn0885.jpg" endDate="2001-01-01T13:30:07" label="dscn0885"
| angle="90" >
|    <options>
|     <option name="Jahreszeit_Stimmung" >
|      <value value="Fasching" />
|     </option>
|     <option name="Orte" >
|      <value value="Oberkappel" />
|     </option>
|     <option name="Personen" >
|      <value value="Paul" />
|     </option>
|    </options>
|   </image>
| 
| now it looks like this:
| 
|   <image width="1200" Jahreszeit/Stimmung="7" Orte="6"
| startDate="2001-01-01T13:30:07" height="1600"
| md5sum="aeee29c985d036f97ef53ef2811995a9" Personen="18" file=XXX.jpg"
| endDate="2001-01-01T13:30:07" label="dscn0885" angle="90" />
| 
| so the item "Jahreszeit/Stimmung" was an XML-VALUE before and is an XML-TAG
| now. However XML puts much tighter restrictions on what an XML-TAG can
| contain, that's where the problem occurs.
| 
| and yes, replacing this with e.g. underscore to "Jahreszeit_Stimmung"
| allowed me to continue, however you will get this problem with anybody who
| tries to use one of those characters...
| 
| Thanks... Dominik.
| 
| On Mon, Nov 16, 2009 at 3:20 PM, Jesper K. Pedersen <blackie at kde.org> wrote:
| > I dont think we changed anything in the format, so it might be that our
| > XML parser is more strict now. I can't see any other solution than
| > renaming in the
| > XML file.
| >
| > On Monday 16 November 2009 15:14:00 kpabugs at willden.org wrote:
| > | https://bugs.kde.org/show_bug.cgi?id=214816
| > |
| > |            Summary: Error with new XML Format if tag-name contains
| > |                     characters that are not valid as XML Tags
| > |            Product: kphotoalbum
| > |            Version: 4.0 (KDE4)
| > |           Platform: Unlisted Binaries
| > |         OS/Version: Linux
| > |             Status: UNCONFIRMED
| > |           Severity: major
| > |           Priority: NOR
| > |          Component: XML backend
| > |         AssignedTo: kpabugs at willden.org
| > |         ReportedBy: dominik.stadler at gmx.at
| > |
| > |
| > | I have a custom category called "Jahreszeit/Stimmung", this is in use
| >
| > since
| >
| > |  a long time (i.e. from the time the app was still called KimDaBa). It
| > |  seems there is a new format for the index.xml file which breaks this
| >
| > now!
| >
| > | When starting KPA (I am using 4.1.1 compiled for Ubuntu/Kubuntu), I get
| > | something like "Error in row XX, column XX in .../index.xml" and the
| > |  location is when the string "Jahreszeit/Stimmung" is used as XML Tag
| >
| > now:
| > |   <image width="1600" Jahreszeit/Stimmung="1" Orte="6"
| > | startDate="2001-02-01T11:30:49" height="1200"
| > | md5sum="ff26a3e252ad65b74942885f0e0aba67" Personen="4,15"
| > | file="Img0015/dscn0629.jpg" endDate="2001-02-01T11:30:49"
| >
| > label="dscn0629"
| >
| > | angle="0" Stichwörter="32" />
| > |
| > |
| > | Not sure when this change to the XML format was done, I think 4.0.2 did
| > |  still work and 4.1 might have introduced this problem.
| >
| > --
| > Having trouble finding a given image in your collection containing
| > thousands of images?
| >
| > http://www.kphotoalbum.org might be the answer.
| 

-- 
Having trouble finding a given image in your collection containing
thousands of images?

http://www.kphotoalbum.org might be the answer.



More information about the Kphotoalbum mailing list