From ghc-6.4, the runtime system no longer flushes open files; it
truncates them instead. You should close (or flush) the file explicitly
with 'hClose' or 'hFlush' before the program terminates.
I added 'hClose' to processXmlWith in the Wrapper module. That solved the
problem.
Thank you!
Hi,
I'm a Haskell newbie using HaXml for the conversion of xml files into html
files. I'm using GHC 6.4 to compile the program.
When I run the program, it will not convert the whole file: the document
tree is incomplete and will stop when the limit of e.g. 8k has been
reached.
E.g. An xml
HaXml seems to choke on finding an ampersand in an attribute value. Is
this normal? Is there any workaround?
Cheers,
Koen.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
But speaking of HaXml bugs, I'm pretty sure HaXml doesn't handle
% correctly. It seem to treat % specially everywhere, but I think
it is only special inside DTDs. I have many XML files produced by
other tools that the HaXml parser fails to process because of this.
I had a similar problem
Ah, I see. In the first case, you simply change the font tag into
h1, keeping the em tag exactly the same. But in the second case,
you not only want to change font into h1, but also to move the em
tag from outside the font to inside.
Not exactly. In the end I want to turn both tags into one
Hi all,
I'm new to Haskell and HaXml and I'm playing around
with the latter to clean some (well-formed) 'legacy' html. This works fine
except for the following cases. Some of the elements to be cleaned are:
font size=4iHello
World/i/font
ifont
size=4Hello World/font/i
This should
I'm new to Haskell and HaXml and I'm playing around with the latter to
clean some (well-formed) 'legacy' html. This works fine except for the
following cases. Some of the elements to be cleaned are:
font size=4iHello World/i/font
ifont size=4Hello World/font/i
This