Finally found a solution by adjusting a combination of the values of part.subparsed.value in the custom parser for text with type content and doing this for type content in the nullgetter. Otherwise the delimiters were escaped incorrectly because I use < and > as delimiters. I escaped these because otherwise the file was not valid. But the parser escape < and > to < and >.