diff --git a/compiler-plugin/src/main/java/io/ballerina/lib/data/xmldata/compiler/XmldataRecordFieldValidator.java b/compiler-plugin/src/main/java/io/ballerina/lib/data/xmldata/compiler/XmldataRecordFieldValidator.java index 22587cf..305e076 100644 --- a/compiler-plugin/src/main/java/io/ballerina/lib/data/xmldata/compiler/XmldataRecordFieldValidator.java +++ b/compiler-plugin/src/main/java/io/ballerina/lib/data/xmldata/compiler/XmldataRecordFieldValidator.java @@ -393,7 +393,7 @@ private boolean isParseFunctionFromXmldata(ExpressionNode expressionNode) { if (nameReferenceNode.kind() != SyntaxKind.QUALIFIED_NAME_REFERENCE) { return false; } - String prefix = ((QualifiedNameReferenceNode) nameReferenceNode).modulePrefix().toString(); + String prefix = ((QualifiedNameReferenceNode) nameReferenceNode).modulePrefix().text(); if (!prefix.equals(Constants.XMLDATA)) { return false; }