XML Cookbook
Kurzbeschreibung
Dieses Cookbook dient als schnelle Referenz für häufig verwendete XML-Strukturen.
Die Beispiele zeigen bewusst nur den notwendigen XML-Code und verzichten weitgehend auf Erklärungen.
Ausführliche Informationen zu den einzelnen Elementen finden Sie in den jeweiligen Fachartikeln.
Text ausgeben
XML-Suche: Block · Content · Text
<Block>
<Content>
<Text Content="Hallo Welt">
</Text>
</Content>
</Block>Variable ausgeben
XML-Suche: Block · Content · Variable · Path
<Block>
<Content>
<Variable Path="source.name">
</Variable>
</Content>
</Block>Text und Variable kombinieren
XML-Suche: Block · Content · Text · Variable · Path
<Block>
<Content>
<Text Content="Name: ">
</Text>
<Variable Path="source.name">
</Variable>
</Content>
</Block>Barcode
XML-Suche: Block · Content · Barcode · Symbology · Height · Width · NoText
<Block>
<Content>
<Barcode
Symbology="QR"
Height="2000000"
Width="2000000"
NoText="true">
</Barcode>
</Content>
</Block>QR-Code mit eigenem Inhalt
XML-Suche: Block · Content · BarcodeFormatter · Symbology · Height · Width · NoText · Text
<Block>
<Content>
<BarcodeFormatter
Symbology="QR"
Height="2000000"
Width="2000000"
NoText="true">
<Text Content="www.hc-vision.de">
</Text>
</BarcodeFormatter>
</Content>
</Block>EPC-Barcode
XML-Suche: Block · Content · EpcBarcode · Version · BicPath · IbanPath · AmountPath
<Block>
<Content>
<EpcBarcode
Version="1"
BicPath="custom.bic"
IbanPath="custom.iban"
AmountPath="custom.amount">
</EpcBarcode>
</Content>
</Block>Hyperlink
XML-Suche: Block · Content · Text · Hyperlink · IsExternal · Link
<Block>
<Content>
<Text Content="Weitere Informationen: ">
</Text>
</Content>
<Hyperlink
IsExternal="true"
Link="https://www.hc-vision.de">
<Content>
<Text Content="hier klicken">
</Text>
</Content>
</Hyperlink>
</Block>Signatur
XML-Suche: Block · Content · Signature · Source · Width · Height
<Block>
<Content>
<Signature
Source="user"
Width="2500000"
Height="1000000">
</Signature>
</Content>
</Block>PasswordField
XML-Suche: Block · PasswordField · TextProperties · IsBold
<Block>
<PasswordField>
<TextProperties>
<IsBold>true</IsBold>
</TextProperties>
</PasswordField>
</Block>Summary
XML-Suche: Body · Summary · Text · Variable · Path
<Body>
<Summary>
<Text Content="Vertragsnummer: ">
</Text>
<Variable Path="source.contractNo">
</Variable>
</Summary>
</Body>Kommentar
XML-Suche: Body · Comment
<Body>
<Comment>
Anpassung vom 15.02.2026
Neue Barcode-Logik
</Comment>
</Body>Zeilenumbruch
XML-Suche: Text · Break · BreakType
<Text Content="Zeile 1">
</Text>
<Break BreakType="Line">
</Break>
<Text Content="Zeile 2">
</Text>OmitEmpty
XML-Suche: OmitEmpty · Variable · Path
<OmitEmpty>
<Variable Path="address.address2">
</Variable>
</OmitEmpty>Dynamischer Baustein
XML-Suche: VarReference · Path · DefaultName
<VarReference
Path="source.Y_Einzug"
DefaultName="Standardbaustein">
</VarReference>Merksatz
Cookbook
Dieses Kapitel dient ausschließlich als schnelle XML-Referenz.
Hintergrundinformationen, Attribute und Best Practices werden in den jeweiligen Artikeln beschrieben.