Followup below...

-----Original Message-----
From: Gareth Reakes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 9:59 AM
To: [EMAIL PROTECTED]
Subject: RE: A couple of questions...

> > 2. When using "DOMImplementation" and "DOMWriter" to create and write a document 
> > to an XML file, there doesn't appear to be a way to specify a validation schema to 
> > be written into the root element. I've probably missed something in the 
> > documentation, so a pointer would be greatly appreciated.
> 
> [GR] If I understand you correctly then you mean something like an 
> xsi:schemaLocation? If this is the case then it is a standard attribute that you 
> would add the same way as any other. If this is not the case then please do clarify 
> and I will attempt an answer.
> 
> [BH] Yes, your understanding is correct. I'm not sure I follow your solution 
> however. The root element is created in the document via the 
> DOMImplementation::createDocument() method. This method takes a namespaceURI, 
> qualifiedName, and a docType as parameters. From what I can tell, the docType 
> parameter is used to specify a DTD rather than a XML schema. Is there some example 
> code available that specifies a XML schema?

[GR] On the document node you get you can do a setAttributeNS("http://....";, 
"xsi:schemaLocation").

[BH] This method does not appear to exist in the C++ implentation. Is there an 
equivalent method?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to