<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2006/02/9be4a9513b06eceb470e19b33ee11f97"
  from="Alain Frisch &lt;Alain.Frisch@i...&gt;"
  author="Alain Frisch"
  date="2006-02-28T15:52:40"
  subject="Re: [Caml-list] xml tree -- variant type tree"
  prev="2006/02/f59cbd9f9ad173f62257c0a2417724b6"
  next="2006/02/54236ddfa0181dd7019024f192ea7fdd"
  prev-in-thread="2006/02/e04c8ab1b293d8f49f5190b5f9c16d87"
  next-in-thread="2006/02/810a676239033685940f34f8c4924ab8"
  prev-thread="2006/02/14a9c4cad7029f82e8818777b3f1896f"
  next-thread="2006/03/fc201eb3f71302cddcd6cdeba8f38433"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="xml tree -- variant type tree">
<msg 
  url="2006/02/5a06bc8279f4c19275cafe9ac3e9a815"
  from="Hendrik Tews &lt;tews@t...&gt;"
  author="Hendrik Tews"
  date="2006-02-28T15:23:41"
  subject="xml tree -- variant type tree">
<msg 
  url="2006/02/e04c8ab1b293d8f49f5190b5f9c16d87"
  from="Michael Wohlwend &lt;micha-1@f...&gt;"
  author="Michael Wohlwend"
  date="2006-02-28T15:42:54"
  subject="Re: [Caml-list] xml tree -- variant type tree">
<msg 
  url="2006/02/9be4a9513b06eceb470e19b33ee11f97"
  from="Alain Frisch &lt;Alain.Frisch@i...&gt;"
  author="Alain Frisch"
  date="2006-02-28T15:52:40"
  subject="Re: [Caml-list] xml tree -- variant type tree">
</msg>
</msg>
<msg 
  url="2006/02/810a676239033685940f34f8c4924ab8"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2006-02-28T15:47:56"
  subject="Re: [Caml-list] xml tree -- variant type tree">
<msg 
  url="2006/02/54236ddfa0181dd7019024f192ea7fdd"
  from="Michael Wohlwend &lt;micha-1@f...&gt;"
  author="Michael Wohlwend"
  date="2006-02-28T15:56:56"
  subject="Re: [Caml-list] xml tree -- variant type tree">
<msg 
  url="2006/02/b7334ae50cf879e74b8b9faf0252e31b"
  from="Alain Frisch &lt;Alain.Frisch@i...&gt;"
  author="Alain Frisch"
  date="2006-02-28T16:24:49"
  subject="Re: [Caml-list] xml tree -- variant type tree">
<msg 
  url="2006/02/406082980351bed8ed58171fa77ef569"
  from="Michael Wohlwend &lt;micha-1@f...&gt;"
  author="Michael Wohlwend"
  date="2006-02-28T18:11:18"
  subject="Re: [Caml-list] xml tree -- variant type tree">
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2006/02/6af59d175cbc1504e985c3969a204017"
  from="philip &lt;philip-f@w...&gt;"
  author="philip"
  date="2006-02-28T20:56:48"
  subject="Re: [Caml-list] xml tree -- variant type tree">
</msg>
</msg>
</thread>

<contents>
Michael Wohlwend wrote:
&gt; I have used expat to parse my xml. To get more managable code I only use expat 
&gt; to fill a queue with the tags found: Start(tag,attr list) and End(tag,text). 
&gt; Then I make a stream of the function which reads that queue and can use 
&gt; ocaml's streamparsers to parse my xml and build my data structures quite 
&gt; easy. It's short, fast and easy changeable. The streamparses can watch only 
&gt; for the relevant tags to get the desired information and build the result.

FWIW, this would be even simpler with PXP's pull parsers (you call a 
function to get the next event instead of providing call-backs).

-- Alain

</contents>

</message>

