Bug 167140 - Kwrite doesn't show mallformed xml
Summary: Kwrite doesn't show mallformed xml
Status: RESOLVED DUPLICATE of bug 167767
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-21 14:39 UTC by Kristjan Ugrin
Modified: 2008-08-13 12:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
I get this (Kwrite OK) (92.05 KB, image/jpeg)
2008-08-01 15:44 UTC, Dario Andres
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kristjan Ugrin 2008-07-21 14:39:58 UTC
Version:           4.1.00 (using KDE 4.0.98)
Installed from:    SuSE RPMs
OS:                Linux

I was working on an application that produces xmls - in early stages it produces mallformed xmls, like this one (just header):
http://files.myopera.com/kriko/files/path.xml

I use kwrite for debugging (inspecting generated content), however kwrite in KDE4 fails to display the content (it works in kwrite for KDE3 - it displays raw content).
Comment 1 Ivo Anjo 2008-07-29 10:27:47 UTC
I can confirm this too, on kwrite/kde 4.1 . On kde 4.0 it works correctly.
Comment 2 Dario Andres 2008-08-01 15:36:56 UTC
Using KDE 4.1.00 (KDE 4.1.0) (KDEmod) in ArchLinux i686:
I can open that file with KWrite. Is the XML file OK now ?. Even if I modify it (to make it invalid) and save it to another XML file, this new file will be opened OK in kwrite (and it's displayed). Should I notice another thing ?
Comment 3 Kristjan Ugrin 2008-08-01 15:41:43 UTC
You don't get this?
http://files.myopera.com/kriko/files/kwrite_xml_broken.png
Comment 4 Dario Andres 2008-08-01 15:44:09 UTC
Created attachment 26549 [details]
I get this (Kwrite OK)

Opening http://files.myopera.com/kriko/files/path.xml with KWrite in KDE4.1
final
Comment 5 Kristjan Ugrin 2008-08-01 15:50:32 UTC
No, you are doing it wrong! :)
unfortunately if you wget that page you'll get a html - you need either to visit it and then right-click on download.

You might try directly saving this link:
http://files.myopera.com/kriko/files/path.xml?1217598498
Comment 6 Dario Andres 2008-08-01 16:00:46 UTC
Ups, sorry, I didn't notice the Opera warning before getting the original file :$

Using KDE 4.1.00 (KDE 4.1.0) (KDEmod) in ArchLinux i686:

I can confirm this bug

With this XML:

------------

<?xml version="1.0" encoding="UTF-8"?><graphml xmlns="http://graphml.graphdrawing.org/xmlns"><graph edgedefault="undirected"><!-- data schema --><key id="name" for="node" attr.name="name" attr.type="string"/><key id="relation" for="edge" attr.name="relation" attr.type="string"/><!-- nodes -->

-------------
Comment 7 Dario Andres 2008-08-01 16:06:03 UTC
I've noticed that I can paste this XML in another KWrite, save it as a xml file and see its highlighting OK. However, reopening this file will result in this bug. Same with Kate.
Comment 8 Dario Andres 2008-08-01 18:27:43 UTC
I've noticed another important thing:
If there's a line break ("\n") in the file, it can be loaded normally. So I now suppose that this bug is a duplicate of bug 167767 (as it matches its definition), and it isn't related to malformed xml.
Comment 9 Kristjan Ugrin 2008-08-01 18:35:28 UTC
Excellent eye!
Comment 10 Christoph Cullmann 2008-08-12 14:19:31 UTC
Fixed in /trunk, but no idea, which change did make that :(
Comment 11 Christoph Cullmann 2008-08-13 12:42:27 UTC
Yes, it is actually the same problem.

*** This bug has been marked as a duplicate of 167767 ***