Hi folks,
First off, thanks to David, Boris and Axel for their very helpful
responses. I have been subscribed to this mailing list for a few
months and have found that it has a very high signal to noise ratio.
At 22:45 08/03/2006, Axel Weiß wrote:
>[wonders what Ciaran is using Xerces for]
Put simply, I parse and validate an input XML or XSD file, walk the
resulting DOM tree and execute a few print statements for each node
that I encounter. The print statements generate a Tcl script that I
feed into a Tcl interpreter. By doing this, I am obtaining a DOM-like
tree structure in Tcl.
<Aside>
There are probably several people on this mailing list thinking
"But that's crazy; there is already a Tcl extension available
that provides access to an XML parser and DOM tree". I am aware
of that, but there is method to my madness of re-inventing the
wheel. It would take too long to explain in depth the reasons for
why I am doing this, but it is all part of what will ultimately
be released as an open-source project. When the project is
released to the world as some working code and documentation then
I will send an announcement to this mailing list.
</Aside>
For my purposes, it would have been ideal if Xerces could automatically
insert the DOM tree from an xsd:import or xsd:include element into the
primary DOM tree. However, now that David and Boris have pointed me in
the right direction to do the import/include myself, it seems to be just
a SMOP (Simple Matter Of Programming).
Regards,
Ciaran.
--
Ciaran McHale, Ph.D. Email: [EMAIL PROTECTED]
Principal Consultant Tel: +44-(0)7866-416-134 (mobile)
IONA Technologies, UK Tel: +44-(0)118-954-6632 (home office)
Fax: +44-(0)118-954-6767