Debugger


The debugger gives an insight into the OpenXML structure of the document and displays associated OneOffixx information. This function should only be used during development or editing of the template or alternatively for support with the document functions "Scripts" or "Library for advanced binding" (Extended bindings).


Overview tab

The "Overview" tab lists the following data of the document:

  • Template Id

  • Internal Template Id

  • Document Id

  • Document LCID

  • UI LCID

  • Profile Id

  • Creation Mode

  • Pipeline Version


DocumentPart tab

The "DocumentPart" tab lists the content from the OneOffixxDocumentPart custom XML part.
The OneOffixxDocumentPart custom XML part contains all OneOffixx text elements. The display of the OneOffixxDocumentPart in the debugger is used to ensure that the OneOffixx text elements are passed to the document for further processing.

Below is a list of the most common OneOffixx text elements that can be viewed in the debugger under the "DocumentPart" tab:

  • Document Parameter

  • Profile Data

  • Recipient Information

  • Interfaces

  • Scripts

IMPORTANT
The position of the document function "Debugger" influences which data is in the DocumentPart at that time. For example, if the debugger is located before the document parameters, no document parameter information will be displayed in the DocumentPart.

The information of the document functions that are above the debugger are displayed in the DocumentPart. The information of those located below is not displayed. The content of the Custom XML Part OneOffixxDocumentPart is displayed as follows:

<DataModel xmlns=""> <Parameter windowwidth="750" windowheight="450" minwindowwidth="0" maxwindowwidth="0" minwindowheight="0" maxwindowheight="0"> [...] <Text id="DocParam.Subject" [...]><![CDATA[OneOffixx Documentation]]></Text> <DateTime id="DocParam.Date" [...]><![CDATA[2018-10-31T00:00:00Z]]></DateTime> <Text id="DocParam.Enclosures" [...]><![CDATA[Document]]></Text> <Text id="DocParam.CopyTo" [...]><![CDATA[Customer]]></Text> [...] </Parameter> <Profile windowwidth="0" windowheight="0" minwindowwidth="0" maxwindowwidth="0" minwindowheight="0" maxwindowheight="0"> [...] <Text id="Profile.Org.Title" [...]><![CDATA[OneOffixx]]></Text> <Text id="Profile.Org.Web" [...]><![CDATA[oneoffixx.com]]></Text> <Text id="Profile.User.FirstName" [...]><![CDATA[John]]></Text> <Text id="Profile.User.LastName" [...]><![CDATA[Doe]]></Text> [...] </Profile> <Interfaces windowwidth="0" windowheight="0" minwindowwidth="0" maxwindowwidth="0" minwindowheight="0" maxwindowheight="0"> <NodeGroup id="InterfaceDemo" [...]> <Text id="ErstesFeld" [...]><![CDATA[1]]></Text> <Text id="ZweitesFeld" [...]><![CDATA[2]]></Text> <Text id="DrittesFeld" [...]><![CDATA[3]]></Text> </NodeGroup> </Interfaces> [...] </DataModel>

The <![[CDATA[]]> tags ensure that special characters are intercepted and not interpreted as XML.


DocData tab

In the "DocData" tab, the entire Word file is displayed in XML form. Here, the individual files, each located in the Word file directory, are listed as individual packages. The file 'document.xml' in the directory 'Word' is displayed as follows:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?mso-application progid="Word.Document"?> <pkg:package xmlns:pkg="http://schemas.microsoft.com/office/2006/xmlPackage"> [...] <pkg:part pkg:name="/word/document.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"> <pkg:xmlData> <w:document [...]> <w:body> <w:p> <w:r> <w:t>Content from the first and only paragraph...</w:t> </w:r> </w:p> <w:sectPr w:rsidR="002C66A7" w:rsidRPr="002C66A7"> <w:pgSz w:w="11906" w:h="16838" /> <w:pgMar w:top="1417" w:right="1417" w:bottom="1134" w:left="1417" w:header="708" w:footer="708" w:gutter="0" /> <w:cols w:space="708" /> <w:docGrid w:linePitch="360" /> </w:sectPr> </w:body> </w:document> </pkg:xmlData> </pkg:part> [...] </pkg:package>

Thus in DocData the contents of all files of the Word file can be viewed. This XML document is also created when a Word document is saved with file type "Word XML document (*.xml)".

 

PrimeSoft AG, Bahnhofstrasse 4, 8360 Eschlikon, Switzerland