OCLOperators XmlValidateWithSchemas
No edit summary
No edit summary
Line 1: Line 1:
selfVM.XmlValidateWithSchemas(somexml,collection of urls to schemas)
selfVM.XmlValidateWithSchemas(somexml,collection of urls to schemas)
This operator reads one or more XML Schemas and validates the supplied xml in regards to those schemas.
  selfVM.XmlValidateWithSchemas( '<root/>' ,  Set{'http://www.gdsregistry.org/3.1/schemas/gs1/gdsn/CatalogueItemNotification.xsd'} )->foreach(s|self.Details.Add(Detail.Create);self.Details->last.Attribute1:=s)
  selfVM.XmlValidateWithSchemas( '<root/>' ,  Set{'http://www.gdsregistry.org/3.1/schemas/gs1/gdsn/CatalogueItemNotification.xsd'} )->foreach(s|self.Details.Add(Detail.Create);self.Details->last.Attribute1:=s)

Revision as of 11:46, 17 August 2021

This page was created by Hans.karlsen@mdriven.net on 2021-08-17. Last edited by Edgar on 2025-01-20.

selfVM.XmlValidateWithSchemas(somexml,collection of urls to schemas)

This operator reads one or more XML Schemas and validates the supplied xml in regards to those schemas.

selfVM.XmlValidateWithSchemas( '<root/>' ,  Set{'http://www.gdsregistry.org/3.1/schemas/gs1/gdsn/CatalogueItemNotification.xsd'} )->foreach(s|self.Details.Add(Detail.Create);self.Details->last.Attribute1:=s)