From 4272d145a2750ce56b5548ed7c662d88772a35d1 Mon Sep 17 00:00:00 2001 From: Sasindu Alahakoon Date: Fri, 22 Nov 2024 11:03:45 +0530 Subject: [PATCH] Update the validate API doc parameters --- ballerina/xml_api.bal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ballerina/xml_api.bal b/ballerina/xml_api.bal index dc72925..e2e1d17 100644 --- a/ballerina/xml_api.bal +++ b/ballerina/xml_api.bal @@ -475,7 +475,7 @@ isolated function addNamespaces(map allNamespaces, map namespace # The schema can either be a file path to the `.xsd` file or a Ballerina record type that represents # the XSD structure. The function checks if the `xmlValue` conforms to the provided schema. # -# + schema - A `string` representing the XSD content or a Ballerina record type representing the XSD. +# + schema - A `string` representing the file path to the `.xsd` file or a Ballerina record type representing the XSD. # + xmlValue - The XML document that needs to be validated against the schema. # + return - Returns `()` if the XML is valid according to the schema, otherwise returns `Error`. public function validate(xml xmlValue, string|typedesc schema)