Hair XML Format

steps, nb_control_points, nb_in_tangents, nb_out_tangents are set only in first frame to avoid information duplication (they aren't supposed to change during animation)

<!DOCTYPE CurveSetXML>
<animation nb_curves="2" image_height="512" isWorldCoord="1" image_width="512" nb_frames="2"
              zmin="-2" ymin="-2" xmin="-2"
              zmax="-2" ymax="-2" xmax="-2" >
 <camera_info up_x="0" up_y="0" up_z="1" pos_x="0" pos_y="-5" pos_z="1.5"
                 view_x="-60" view_y="100" view_z="0" />
 <curve_set frame_id="0" zmin="0.0" ymin="0.0" xmin="1.0" zmax="4.0" ymax="0.0" xmax="5.0" >
  <curve curve_id="0" steps="1" nb_control_points="5" nb_in_tangents="5" nb_out_tangents="5">
   <control_points_set >
    <control_point x="1.0" y="0.0" z="2.0" itx="0.0" ity="0.0" itz="-1.0"
                   otx="0.0" oty="0.0" otz="1.0"/>
    <control_point x="2.0" y="0.0" z="4.0" itx="-1.0" ity="0.0" itz="-1.0"
                   otx="1.0" oty="0.0" otz="1.0"/>
    <control_point x="3.0" y="0.0" z="4.0" itx="-1.0" ity="0.0" itz="0.0"
                   otx="1.0" oty="0.0" otz="0.0"/>
    <control_point x="5.0" y="0.0" z="3.0" itx="0.0" ity="0.0" itz="1.0"
                   otx="0.0" oty="0.0" otz="-1.0"/>
    <control_point x="4.0" y="0.0" z="0.0" itx="1.0" ity="0.0" itz="1.0"
                   otx="-1.0" oty="0.0" otz="-1.0"/>
   </control_points_set>
  </curve>
  <curve curve_id="1" steps="5" nb_control_points="4" nb_in_tangents="4" nb_out_tangents="4">
   <control_points_set>
    <control_point x="1.0" y="0.0" z="1.0" itx="1.0" ity="0.0" itz="0.0"
                   otx="1.0" oty="0.0" otz="2.0"/>
    <control_point x="2.0" y="0.0" z="2.0" itx="1.0" ity="0.0" itz="1.0"
                   otx="3.0" oty="0.0" otz="3.0"/>
    <control_point x="3.0" y="0.0" z="2.0" itx="2.0" ity="0.0" itz="2.0"
                   otx="4.0" oty="0.0" otz="2.0"/>
    <control_point x="3.0" y="0.0" z="0.0" itx="4.0" ity="0.0" itz="1.0"
                   otx="3.0" oty="0.0" otz="-1.0"/>
   </control_points_set>
  </curve>	
 </curve_set>
 <curve_set frame_id="1" zmin="-1.0"  ymin="0.0" xmin="0.0" zmax="3.0" ymax="0.0" xmax="4.0"> 
  <curve curve_id="0"> 
   <control_points_set> 
    <control_point x="1.0" y="0.0" z="2.0" itx="0.0" ity="0.0" itz="1.0"
                   otx="2.0" oty="0.0" otz="3.0"/> 
    <control_point x="3.0" y="0.0" z="3.0" itx="2.0" ity="0.0" itz="3.0"
                   otx="4.0" oty="0.0" otz="3.0"/> 
    <control_point x="4.0" y="0.0" z="2.0" itx="4.0" ity="0.0" itz="3.0"
                   otx="4.0" oty="0.0" otz="1.0"/> 
    <control_point x="3.0" y="0.0" z="0.0" itx="4.0" ity="0.0" itz="1.0"
                   otx="2.0" oty="0.0" otz="-1.0"/> 
    <control_point x="0.0" y="0.0" z="-1.0" itx="1.0" ity="0.0" itz="-1.0"
                   otx="-1.0" oty="0.0" otz="-1.0"/> 
   </control_points_set> 
  </curve>
  <curve curve_id="1">
   <control_points_set>
    <control_point x="1.0" y="0.0" z="1.0" itx="0.0" ity="0.0" itz="0.0"
                   otx="2.0" oty="0.0" otz="2.0"/>
    <control_point x="2.0" y="0.0" z="1.0" itx="1.0" ity="0.0" itz="2.0"
                   otx="3.0" oty="0.0" otz="0.0"/>
    <control_point x="2.0" y="0.0" z="0.0" itx="3.0" ity="0.0" itz="1.0"
                   otx="1.0" oty="0.0" otz="-1.0"/>
    <control_point x="0.0" y="0.0" z="0.0" itx="1.0" ity="0.0" itz="-1.0"
                   otx="-1.0" oty="0.0" otz="1.0"/>
   </control_points_set>
  </curve>	
 </curve_set> 
</animation>