Since 2 or 3 days i am trying to undestrand how to create a docx file from my XML.
here my Xml :
- Code: Select all
<body>
<titre>MainTitre</titre>
<texte niv="1" type="DMPART" id="1">
<titre>titleniv1</titre>
<p>myparagraphe</p>
<p>otherPara</p>
<liste type="PUCE">
<item>firtsItem</item>
<item>seconditem</item>
<item>thirdItem</item>
</liste>
<p>paraAgain</p>
</texte>
<texte niv="1" type="DMPART" id="2">
<titre>titleniv1</titre>
<texte niv="2" type="puce" style="noir">
<titre>titleNiv2</titre>
<p>para </p>
</texte>
<texte niv="2" type="puce" style="noir">
<titre>titleniv2</titre>
<p>para</p>
<p>paraAgain </p>
<p>para</p>
</texte>
</texte>
</body>
For my Docx , i would to have
style Title for /body/title
style title1 for texte[@niv='1']/titre
style title2 for texte[niv='2']/title
i would like to manage list item too.
Today i have my custom XML in the Docx as CustomXml/item1.xml (with sample "CreateDocxWithCustomXml"
But i dont understand how to make binding in order to have content texte displayed with style...
Any one to help me ?