Hi,
We don't have that kind of functionality. .net has some functionality to produce a schema from sample xml files, but I have never thought much of the practice.
Gareth
Amit Kishnani wrote:
Hi Gareth,
There is [no schema/no dtd/no internal dtd] existing for the .xml document
so I can't use the setExternalSchemaLocation or load the grammar since there
is no grammar coming with .xml file.
can xerces still guess/make the grammar on the fly by analyzing the .xml only.
Thanks, Amit
-----Original Message-----
From: Gareth Reakes [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 6:11 AM
To: [EMAIL PROTECTED]
Subject: Re: infering schema (without dtd/xschema)
Hi,
You are asking for 2 different things:
1) Binding an XML Schema to a document via namespace. For this, either set setExternalSchemaLocation or load the grammar first via loadGrammar and set validation to always.
2) Referencing the grammar. You can call getGrammar. Take a look at the Grammar docs to find out how to iterate over it.
All the above methods are on DOMBuilder.
Gareth
[EMAIL PROTECTED] wrote:
Hi there,
does xerces-c library offers a functionality of infering the schema/grammar when supplied a sample xml instance document (source) without a reference to dtd or x-schema , if it does can you please point me to a sample or documentation showing how to reference the grammar nodes and enumerate over them
please let me know if this correct e-mail list to ask such questions.
look forward to hearing from developers.
Thanks, Amit
-- Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184 http://www.parthcomp.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]