Re: [xml] Segfault problem with python



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Fleck wrote:
| It would be helpful if you could include a complete, minimal example
| that triggers the segfault. I don't know anything about mod_python, but
| using your above code in a simple python script I didn't get a segfault.
|
| Cheers,
| John

Actually, all I had to do to fix this was upgrade my libxml2 to 2.6.6
and it started working, so that's great.

I was going to write about another problem - where my fallback to an
xinclude wasn't being processed. This is what I had:

<xi:include href='somefile.xml'>
~    <xi:fallback />
</xi:include>

and I was getting an error, stating that the fallback node wasn't a
child of an include. After re-reading the specs, and it saying that the
fallback element must be the first child, and remembering that text will
be considered a node, I changed that to:

<xi:include href="somefile.xml"><xi:fallback /></xi:include>

and all was well. You gurus probably know this already, but any n00bs
like me may want to remember that space can be important in XML. :)

cf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAQqYjoaQ1/feGlJoRAivaAJ4icSNj3kfhIw1eg5B6HAjcFxErSgCgil7K
dy0pI4i7gFz+cnlT9sQELFY=
=haoE
-----END PGP SIGNATURE-----



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