Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

xmlValidate

New Here ,
Nov 03, 2008 Nov 03, 2008
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
TOPICS
Getting started
395
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 11, 2008 Nov 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 11, 2008 Nov 11, 2008
LATEST
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

++
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources