Skip to main content
Participant
November 4, 2008
Question

xmlValidate

  • November 4, 2008
  • 1 reply
  • 439 views
hi i am using function XmlValidate to validate my xml against my schema.

It works, but the return results is not enough explicit. I mean that i want a return result to be the tag and value where the error is, but hence it returns me a common and only thing which is:
quote:

[Error] :2:43: cvc-elt.1: Cannot find the declaration of element 'reservation'.


Is it the normal return of the function XmlValidate??or there's something i missed?

Thank in advance for your help..
David
This topic has been closed for replies.

1 reply

November 11, 2008
Hi David,

I just stared fooling with XmlValidate() as well (I posted an issue in the forum as well).
I too saw this and realized I had a typo in the code where it was pointing to a non-existent xsd. I tested this by putting garbage in the second argument and got the same result. (Once I corrected the code, and pointed to the correct xsd, I could not even get XmlValidate() to work.)
So while it looks like it's returning something (and it is, just not useful) you may want to make sure your path to the xsd is correct.

-Robert
diditinAuthor
Participant
November 12, 2008
Hi Robert,

I didn't find anything new about xmlValidate(). i am going forward for coding a validate cfm, proper to my XML format.

Thanks

++