Hi Mark C and Mark G,
I am facing similar problem with pub.schema.validate service.
My xml’s root element contains xsi:schemaLocation attribute, I believe it’s valid to have it, cause usr might be using XML spy or some other tool to create their xml from shema. When I try to validate document created from this xml (using xmlstring to Node and then Node to Document) against doc type created from shema it fails with error [ISC.0082.9026] Undefined Object found. Offcourse it validates fine in XMLSpy.
As Mark G suggested I tried putting my validate service before document to xml service. So now I am validating xmlnode against actual schema, instead of IS document against IS Doc Type. And guess what??? Its working !!! :)…
So looks like one more case where validate service is not handling attributes correctly… Am I right to say this or I am missing something or doing something stupid here???
I am sure you guys have tried validating xml which contains xsi:schemaLocation attribute… what is your experience??
Please let me know…
Other option I have is to use pub.string.replace service to search for regular expression xsi:schemaLocation=.*.xsd" and replace with blank to get rid of this from xml string… problem I have is, this regular expression support of replace doesnt have option to specify ignore case… i.e. -i
Any thoughts or suggestions from rocket scientists ???
Thanks,
Regards,
Ajit
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB