Vous trouverez ici un exemple pour un fichier d'exportation XML de la structure d'un objet Dossier.
La structure XML d'un fichier exporté (objet) est différente de la structure d'exportation des objets. L'en-tête d'une telle exportation contient l'information structurelle des objets à l'intérieur des fichiers et la définition de ce qui doit être inclus dans l'exportation.
Exemple :
<?xml version="1.0" encoding="ISO-8859-15"?> <uc-export clientvers="11.2.0"> <FolderStruct> <includeExternalObjects>0</includeExternalObjects> <FOLD name="FOLD.NEW.1" title=""> <CALL id="5471403" link="0" name="CALL.ALARM.1.NEW.1"/> <CPIT id="5471404" link="0" name="CPIT.COCKPIT.NEW.1"/> <EVNT_WINDOWS id="5471405" link="0" name="EVNT.NEW.NEW.1"/> </FOLD> </FolderStruct> <CALL name="CALL.ALARM.1.NEW.1"> <XHEADER state="1"> <Title/> <ArchiveKey1/> <ArchiveKey2/> <Active>1</Active> <OH_SubType>2</OH_SubType> <CustomAttributes KeyListID="0" dataRequestID="0"/> </XHEADER> <SYNCREF state="1"> <Syncs/> </SYNCREF> <ATTR_CALL state="1"> <Queue>CLIENT_QUEUE</Queue> <StartType/> <ExtRepDef>1</ExtRepDef> <ExtRepAll>0</ExtRepAll> <ExtRepNone>0</ExtRepNone> <IntAccount/> <External1>0</External1> <External2>1</External2> <EscTime>0</EscTime> <Object/> <AutoDeact>0</AutoDeact> <MaxParallel2>0</MaxParallel2> <MpElse1>1</MpElse1> <MpElse2>0</MpElse2> <UC4Priority>0</UC4Priority> <Priority>1|High</Priority> <Type>2|Alert</Type> <ActAtRun>0</ActAtRun> <TZ/> <AutoDeactNo>0</AutoDeactNo> <AutoDeact1ErrorFree>0</AutoDeact1ErrorFree> <AutoDeactErrorFree>0</AutoDeactErrorFree> <DeactWhen/> <AutoDeactAlways>1</AutoDeactAlways> <DeactDelay>0</DeactDelay> </ATTR_CALL> <NOTIFICATION state="1"> <Subject/> <Text/> <AttachReports/> <ReportSrcDb>1</ReportSrcDb> <ReportSrcExt>0</ReportSrcExt> <ReportSrcAll>0</ReportSrcAll> <AttachFile/> </NOTIFICATION> <CALL state="1"> <Cond/> </CALL> <RUNTIME state="1"> <MaxRetCode>0</MaxRetCode> <MrcExecute/> <MrcElseE>0</MrcElseE> <FcstStatus>0| |</FcstStatus> <Ert>174564</Ert> <ErtMethodDef>1</ErtMethodDef> <ErtMethodFix>0</ErtMethodFix> <ErtFix>0</ErtFix> <ErtDynMethod>2|Average</ErtDynMethod> <ErtMethodDyn>0</ErtMethodDyn> <ErtCnt>0</ErtCnt> <ErtCorr>0</ErtCorr> <ErtIgn>0</ErtIgn> <ErtIgnFlg>0</ErtIgnFlg> <ErtMinCnt>0</ErtMinCnt> <MrtMethodNone>1</MrtMethodNone> <MrtMethodFix>0</MrtMethodFix> <MrtFix>0</MrtFix> <MrtMethodErt>0</MrtMethodErt> <MrtErt>0</MrtErt> <MrtMethodDate>0</MrtMethodDate> <MrtDays>0</MrtDays> <MrtTime>00:00</MrtTime> <MrtTZ/> <SrtMethodNone>1</SrtMethodNone> <SrtMethodFix>0</SrtMethodFix> <SrtFix>0</SrtFix> <SrtMethodErt>0</SrtMethodErt> <SrtErt>0</SrtErt> <MrtCancel>0</MrtCancel> <MrtExecute>0</MrtExecute> <MrtExecuteObj/> </RUNTIME> <DYNVALUES state="1"> <dyntree> <node content="1" id="VALUE" name="Variables" parent="" type="VALUE"> <VALUE state="1"> <Values/> <Mode>0</Mode> </VALUE> </node> </dyntree> </DYNVALUES> <ROLLBACK state="1"> <RollbackFlag>0</RollbackFlag> <CBackupObj/> <CRollbackObj/> <FBackupPath/> <FDeleteBefore>0</FDeleteBefore> <FInclSubDirs>0</FInclSubDirs> </ROLLBACK> <SCRIPT mode="1" state="1"> <MSCRI> </MSCRI> </SCRIPT> <DOCU_Docu state="1" type="text"> <DOC/> </DOCU_Docu> </CALL> <CPIT name="CPIT.COCKPIT.NEW.1"> <XHEADER state="1"> <Title/> <ArchiveKey1/> <ArchiveKey2/> <Active>1</Active> <OH_SubType/> <CustomAttributes KeyListID="0" dataRequestID="0"/> </XHEADER> <SYNCREF state="1"> <Syncs/> </SYNCREF> <RUNTIME state="1"> <MaxRetCode>0</MaxRetCode> <MrcExecute/> <MrcElseE>0</MrcElseE> <FcstStatus>0| |</FcstStatus> <Ert>0</Ert> <ErtMethodDef>1</ErtMethodDef> <ErtMethodFix>0</ErtMethodFix> <ErtFix>0</ErtFix> <ErtDynMethod>2|Average</ErtDynMethod> <ErtMethodDyn>0</ErtMethodDyn> <ErtCnt>0</ErtCnt> <ErtCorr>0</ErtCorr> <ErtIgn>0</ErtIgn> <ErtIgnFlg>0</ErtIgnFlg> <ErtMinCnt>0</ErtMinCnt> <MrtMethodNone>1</MrtMethodNone> <MrtMethodFix>0</MrtMethodFix> <MrtFix>0</MrtFix> <MrtMethodErt>0</MrtMethodErt> <MrtErt>0</MrtErt> <MrtMethodDate>0</MrtMethodDate> <MrtDays>0</MrtDays> <MrtTime>00:00</MrtTime> <MrtTZ/> <SrtMethodNone>1</SrtMethodNone> <SrtMethodFix>0</SrtMethodFix> <SrtFix>0</SrtFix> <SrtMethodErt>0</SrtMethodErt> <SrtErt>0</SrtErt> <MrtCancel>0</MrtCancel> <MrtExecute>0</MrtExecute> <MrtExecuteObj/> </RUNTIME> <DYNVALUES state="1"> <dyntree> <node content="1" id="VALUE" name="Variables" parent="" type="VALUE"> <VALUE state="1"> <Values/> <Mode>0</Mode> </VALUE> </node> </dyntree> </DYNVALUES> <CPIT state="1"> <Cockpit mode="design"> <attributes FrmHeight="7965" FrmWidth="11235" ResName=""/> <control Appearance="" Caption="NEU1" Container="0" Font="Dialog" FontBold="0" FontItalic="0" FontSize="9" Lnr="1" Max1="0" Max2="0" Max3="100" Min="0" MinCol="" Style="1" ValueType="0" height="130" left="100" top="60" width="80"> <source QName="" QName2="" QType=""/> </control> </Cockpit> </CPIT> <SCRIPT mode="1" state="1"> <MSCRI/> </SCRIPT> <DOCU_Docu state="1" type="text"> <DOC/> </DOCU_Docu> </CPIT> <EVNT_FILE name="EVNT.NEW.NEW.1"> <XHEADER state="1"> <Title/> <ArchiveKey1/> <ArchiveKey2/> <Active>1</Active> <OH_SubType>FT</OH_SubType> <CustomAttributes KeyListID="0" dataRequestID="0"/> </XHEADER> <SYNCREF state="1"> <Syncs/> </SYNCREF> <CALEREF state="1"> <Cond/> </CALEREF> <ATTR_EVNT state="1"> <Queue>CLIENT_QUEUE</Queue> <StartType/> <ExtRepDef>1</ExtRepDef> <ExtRepAll>0</ExtRepAll> <ExtRepNone>0</ExtRepNone> <IntAccount/> <ActAtRun>0</ActAtRun> <UC4Priority>0</UC4Priority> <MaxParallel2>0</MaxParallel2> <MpElse1>1</MpElse1> <MpElse2>0</MpElse2> <TZ/> <AutoDeactNo>0</AutoDeactNo> <AutoDeact1ErrorFree>0</AutoDeact1ErrorFree> <AutoDeactErrorFree>0</AutoDeactErrorFree> <DeactWhen/> <AutoDeactAlways>1</AutoDeactAlways> <DeactDelay>0</DeactDelay> </ATTR_EVNT> <EVNT_FILE state="1"> <HostDst>|<WIN>|HOST</HostDst> <Login/> <CLOSEOUTPUT>0</CLOSEOUTPUT> <StartUpEvnt/> <Path>c:\temp</Path> <InclSubDir>0</InclSubDir> <FileType>PU|PATH_SPACE_UNUSED</FileType> <Operator>L|&lt;</Operator> <Value>100</Value> <Unit>3|MB</Unit> <FileType2>| |</FileType2> <ConsiderAll>0</ConsiderAll> <CheckWithin>0</CheckWithin> <HostType>WINDOWS</HostType> <RepeatTypeR>1</RepeatTypeR> <RepeatTypeS>0</RepeatTypeS> <RepeatTypeF>0</RepeatTypeF> <EventTypeTT>1</EventTypeTT> <EventTypeTS>0</EventTypeTS> <EventTypeAuto>0</EventTypeAuto> <TimePeriodTT>0010</TimePeriodTT> <TimePeriodTS>00:00</TimePeriodTS> <TExecTypeT>1</TExecTypeT> <TExecTypeS>0</TExecTypeS> <TExecTypeN>1</TExecTypeN> <TExecTypeE>0</TExecTypeE> </EVNT_FILE> <RUNTIME state="1"> <MaxRetCode>0</MaxRetCode> <MrcExecute/> <MrcElseE>0</MrcElseE> <FcstStatus>0| |</FcstStatus> <Ert>0</Ert> <ErtMethodDef>1</ErtMethodDef> <ErtMethodFix>0</ErtMethodFix> <ErtFix>0</ErtFix> <ErtDynMethod>2|Average</ErtDynMethod> <ErtMethodDyn>0</ErtMethodDyn> <ErtCnt>0</ErtCnt> <ErtCorr>0</ErtCorr> <ErtIgn>0</ErtIgn> <ErtIgnFlg>0</ErtIgnFlg> <ErtMinCnt>0</ErtMinCnt> <MrtMethodNone>1</MrtMethodNone> <MrtMethodFix>0</MrtMethodFix> <MrtFix>0</MrtFix> <MrtMethodErt>0</MrtMethodErt> <MrtErt>0</MrtErt> <MrtMethodDate>0</MrtMethodDate> <MrtDays>0</MrtDays> <MrtTime>00:00</MrtTime> <MrtTZ/> <SrtMethodNone>1</SrtMethodNone> <SrtMethodFix>0</SrtMethodFix> <SrtFix>0</SrtFix> <SrtMethodErt>0</SrtMethodErt> <SrtErt>0</SrtErt> <MrtCancel>0</MrtCancel> <MrtExecute>0</MrtExecute> <MrtExecuteObj/> </RUNTIME> <DYNVALUES state="1"> <dyntree> <node content="1" id="VALUE" name="Variables" parent="" type="VALUE"> <VALUE state="1"> <Values/> <Mode>0</Mode> </VALUE> </node> </dyntree> </DYNVALUES> <ROLLBACK state="1"> <RollbackFlag>0</RollbackFlag> <CBackupObj/> <CRollbackObj/> <FBackupPath/> <FDeleteBefore>0</FDeleteBefore> <FInclSubDirs>0</FInclSubDirs> </ROLLBACK> <PRE_SCRIPT mode="1" replacementmode="1" state="1"> <PSCRI/> </PRE_SCRIPT> <SCRIPT mode="1" state="1"> <MSCRI/> </SCRIPT> <DOCU_Docu state="1" type="text"> <DOC/> </DOCU_Docu> <DOCU_Details- state="1" type="xml"> <DOC/> </DOCU_Details-> </EVNT_FILE> </uc-export>
Rubriques connexes :
Structure du fichier d'exportation
Structure des fichiers XML pour l'importation et l'exportation