[Glade-devel] Why libxml2 and not GMarkupParser?



--Boundary-00=_7gHAA00qeMjfPoK
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Saturday 10 January 2004 10:58, Olexiy Avramchenko wrote:

As for size issues: I'm afraid that Glib's markup stuff doesn't handle
compressed xml files,
like libxml2 does. For example: I have ~600KB xml for my current
project, gzipped it's about ~36KB.

That's a good point. I didn't know it was possible to use gzipped XML files 
with libglade, and it certainly makes sense.

However, in that case I'd just add a dependency to libz (which is already 
there anyway when using Gtk+), and decompress the file/buffer in libglade 
using libz before feeding it to the GMarkupParser.

New patch that can handle both plain text input and gzipped files (and 
buffers) attached, in case anyone wants to give it a shot.

Cheers
-Tim



--Boundary-00=_7gHAA00qeMjfPoK
Content-Type: application/x-bzip2;
  name="libglade-2.0-nolibxml2-but-still-gzip-enabled-2004-Jan-10.diff.bz2"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
        filename="libglade-2.0-nolibxml2-but-still-gzip-enabled-2004-Jan-10.diff.bz2"

QlpoOTFBWSZTWYXJOxkADy1/gH/81oj7////////+/////5gHFzoU7vu9512vG+3075vt3aKsV3z
nbzbve7bvbZqwApc++73225VX3W6AZ7D31nWXj5u7K69u997nvtHS2aH3ZVPQsYqpsPe93rbKe4J
EiATQJgmVT9Np6KZU9qj9I2qPU/VHkR6nqG1PJD1AANDCemiaAJTQgIIJU/AobUnppHpiRtRp6gN
A0GgAAAAA0AMFEqMQaDT1DR6jBGjE0M1D1AGQYmQ0GhiaAyAAIUUSmJqnpqaNqeoMmmRkGnpA0Hq
BoAaNAAAANAAIlTIJT8iaptMU/TVPU/VPQjanpMT1NDTTR6gDQAA0AGgAyAiSITIRiZNAKZNMRlT
1B5R7UnlPUbSaGh6RoPU0DI0BoyHqe97PAqqUCBDAOEhgDHmvnMEkFVmRhjlATjoukYGMmpOSQCi
JhCaBhkaaIjjAZDBkiTbYDGFbVjNVBBEVgaQbtVVVVZmVVVmsAQzu1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qqqZoh6uxHvSaGi89q9NBSIDanOuo2EQ67AWs4c270RycBq3uO0nTeEOQ+dNuS9RnUN
StO40IqSOxIY2HBVvAb2KxMw1lHrD31b/PdLegfaYyhSFAEpUv74eggBa1Iwlg9FXEuQy+kspImw
38D74OUBkUMCAvuE6ciANzgkxz21JFt/IWSZ2WHFdUSCaN7U5to3UQTTqkUBMknFQgYZKGa6YheI
Qcyj3O2sIJBsUlndx8erTrg56udSLhgqIOSQ1tzskDkJaLiU5qmGNBf6O58TbcbwIiRUhAYEUELs
cxgmaApECIglpMhuQ2MIRBD4yIWcX0w53HccfVZLRsfDAeMePRR3lDuAed1dh5/YdI72VVVNNDFX
LnrEHRiGipiyeJzCSWrx6C9AA1DahQUSipqoR7CLZBGLY39maAAX6LonBwCMNj3Ow7vi0Pe6M0+I
Pt+5QI+wQ4Rf7oA+DOwW9HbqPIVKLuU5Dnt22ga9rkQ0ClHaG4x0Km1O31PI9B3Kj32wHWL2NBgA
Ngt7fIOF5hY9Cyhvz3CFH2AaU/bvKR3TbI7PkyBc3jyJLWRtkRvJkFJSSkKsTQd9acdhfhrB8qCy
Zr9M9Jf7cIOQB4qhoKBT/YQeWEJ4bicXlodNdrg49WUOB/90w/+LuSKcKEhC5J2MgA==

--Boundary-00=_7gHAA00qeMjfPoK--





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]