diff --git a/ds3-autogen-net/src/main/resources/tmpls/net/parsers/typeset/primitive_parsers.ftl b/ds3-autogen-net/src/main/resources/tmpls/net/parsers/typeset/primitive_parsers.ftl index c30ff887..90cbb6ba 100644 --- a/ds3-autogen-net/src/main/resources/tmpls/net/parsers/typeset/primitive_parsers.ftl +++ b/ds3-autogen-net/src/main/resources/tmpls/net/parsers/typeset/primitive_parsers.ftl @@ -244,8 +244,8 @@ string encapsulatingXmlTag, Func parser) { - var encapsulatingElement = element.Element(encapsulatingXmlTag); - if (null == encapsulatingElement || encapsulatingElement.IsEmpty) + var encapsulatingElement = element.Elements(encapsulatingXmlTag); + if (null == encapsulatingElement || encapsulatingElement.Count() == 0) { return Enumerable.Empty(); }