diff --git a/cli/src/main/resources/scalaxb.scala.template b/cli/src/main/resources/scalaxb.scala.template
index 01d6989d..ed7753b1 100644
--- a/cli/src/main/resources/scalaxb.scala.template
+++ b/cli/src/main/resources/scalaxb.scala.template
@@ -724,7 +724,7 @@ trait AnyElemNameParser extends scala.util.parsing.combinator.Parsers {
     accept("any", { case x: ElemName if x.name != "" && f(x) => x })
 
   def optTextRecord(implicit format: XMLFormat[String]): Parser[Option[DataRecord[Any]]] =
-    opt(text ^^ (x => DataRecord(x.node.text)(format)))
+    opt(text ^^ (x => DataRecord(x.node.text)))
 
   def text: Parser[ElemName] =
     accept("text", { case x: ElemName if x.name == "" => x })