I tried, without success to create an XML from scratch :
the Idea is to take an existing dataset, revome unwanted nodes and write new ones based on previous events.
here is the production XML:
Code: Select all
<?xml version="1.0" encoding="ISO-8859-1"?>
<order>
<productnumber>29733</productnumber>
<ordernumber>ORD230316318715T_3591180001</ordernumber>
<productname>product </productname>
<qte>1</qte>
<nbitems>1</nbitems>
<orderitemnumber>1</orderitemnumber>
<item>359118</item>
</order>
Code: Select all
1<EnfocusReport>
2 <Report>
3 <PreflightResult errors="0" criticalfailures="0" noncriticalfailures="0" signoffs="0" fixes="0" warnings="1">
4 <PreflightResultEntry type="Check" level="warning">
5 <PreflightResultEntryMessage xml:lang="fr-FR">
<Message>La résolution de image couleur ou en gamme de gris est inférieur(e) à 150 ppi (1x à la page 1)</Message>
<StringContext>
<BaseString>La résolution de %ImageType% est %Comparator% %ReferenceResolution% ppi</BaseString>
<Const name="ActionID">1150</Const>
<Const name="ImageType">image couleur ou en gamme de gris</Const>
<Const name="Category">Check</Const>
<Const name="Comparator">inférieur(e) à </Const>
<Const name="ReferenceResolution">150</Const>
<Instance>
<Location maxX="454.8" maxY="347.4" minX="-1.6e-008" minY="-1.6e-008" page="0"/>
Code: Select all
<ordernumber>ORD230316318715T_3591180001</ordernumber>
<item>359118</item>
Code: Select all
Warning
Code: Select all
error
The new xml will look like :
Code: Select all
<ProcessedFile>
<ordernumber>ORD230316318715T_3591180001</ordernumber>
<item>359118</item>
<Result state ="warning"(or error)>
<path>192.168.1.69/paoflow/ORD230316318715/359118</path>
</result>
</processedFile>
Code: Select all
<Result state ="ok">

Thank you
Victor