diff --git a/Interfaces/ZUGFeRDInterface.vb b/Interfaces/ZUGFeRDInterface.vb index b3e91f65..5278d344 100644 --- a/Interfaces/ZUGFeRDInterface.vb +++ b/Interfaces/ZUGFeRDInterface.vb @@ -288,7 +288,8 @@ Public Class ZUGFeRDInterface ' Extract XML attachments only! Dim oFiles = oEmbedExtractor.Extract(pPath, New List(Of String) From {"xml"}) If Validate Then - Return _Validator.ValidateZUGFeRDDocument(HandleEmbeddedFiles(oFiles)) + Dim oZugferdResult = HandleEmbeddedFiles(oFiles) + Return _Validator.ValidateZUGFeRDDocument(oZugferdResult) Else ' Attachments are in this case the files that are embedded into a pdf file, ' like for example the zugferd-invoice.xml file