It certainly *is* possible to process XML directly. I have a test module for a modified version of HaXml that do this... maybe this helps?

The text program is:
  http://www.ninebynine.org/Software/HaskellUtils/HaXml-1.12/test/TestXml.hs
with supporting data files in the same directory:
  http://www.ninebynine.org/Software/HaskellUtils/HaXml-1.12/test/
which is all part of my modified version of HaXml at:
  http://www.ninebynine.org/Software/HaskellUtils/HaXml-1.12/

You may also need to check out my 'Traverse' module:
  
http://www.ninebynine.org/Software/HaskellUtils/HaXml-1.12/src/Text/XML/HaXml/Traverse.hs

This code is all heavily refactored from the original HaXml for improved XML entity handling, namespace, xml:lang and xml:base support, but I'm fairly sure I didn't actually add anything else that you couldn't reasonably get at using the original HaXml API.

#g
--

At 01:23 02/06/05 -0700, Echo Nolan wrote:

Hi all,
I've an application which needs to process some XML, but the only way I
can see in the Haddock-generated documentation is using the
processXmlWith wrapper, which reads it's input and output arguments from
the command line. I'd prefer a pure function which took a Document or a
String and returned the same, processed. I hope I've overlooked
something.
Regards,
Echo Nolan

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

------------
Graham Klyne
For email:
http://www.ninebynine.org/#Contact

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to