Validating XML with an XSD schema with MSXML and LotusScript

0 pts.
Tags:
Development
Java
LotusScript
XML
I hope you can help me with the following question. I have written a process part of which uses the NotesDOMParser to validate XML with a DTD. Now I want to validate the XML with an XSD schema. I saw an example of this on the Microsoft Developer Network site: "Validate Documents Using SAX", which led me to thinking I could access the MSXML parser via Domino Designer and LotusScript. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/4dd50157-8dd1-433b-925c-f8a93e612331.asp My problem is that I am a novice at this and I cannot see how to use the code in the example. If you have any pointers I would appreciate your assistance. Thanks Bill 0419 201 169 + 61 3 5237 7064
ASKED: July 9, 2005  8:20 PM
UPDATED: July 11, 2005  11:01 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Dear Bill,

look at the
“Application Form (SAX Validator)” section on “How the SAX Validator Application Works”.
There is a Form where you can see how the XSD File is assign to the oSC object in the VB code.

oSC.Add “”, txtSchemaFile

see also how is assign the XML File to the oReader object.

oReader.parseURL txtInputFile

iExplore and others Navegators make a validation in automatic way when you open the file XML and it has a reference to the Schema.

In the XSD the keyword “type=”xsd:string”
means that the element is an String. Look that “id” is declared as attribute and the others are declared as elements.

I hope I help you a little to understand the example.

Facundo Wisar MX
precursoft@yahoo.com
fgwisar2000@yahoo.com

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following