kxml_compiler

R.F. Pels ruurd at tiscali.nl
Tue Jan 31 23:53:13 GMT 2006


On Tuesday 31 January 2006 23.25, Frans Englich wrote:

> I think it would be useful for readers(including me) if these questions
> were answered:
>
> * What is kxml_compiler?

From looking at the code, I understand that this is a KDE application that can 
generate C++ code as well as an XML parser based on a DTD. That is, based on 
the DTD it creates a set of C++ classes and a parser that can parse an XML 
file that adheres to the definition in the DTD and that can create an object 
tree from the C++ classes generated earlier.

> * What is kwsdl_compiler?

Essentially the same but for WSDL instead of DTD.

> I wonder about the justification for kdelibs inclusion. The "two or more
> usage scenarios must exist"-rule which often is applied could perhaps be
> answered here as well. What needs k{xml,wsdl}_compiler except kdepim?

Everybody that creates classes and wants to create object trees in memory 
based on an XML file or a SOAP request. This type of work is quite frequent 
in for example Java. For example a tool like Castor can be used to create 
XML-parsers and XML-generators based on an XSD. The resulting classes can 
marshall object trees into XML and unmarshall XML into object trees.

However, in my experience these tools are primarily geared towards development 
and are not an item I would thinks as being part of kdelibs.

> KDOM's growing XPath 2.0/XQuery 1.0 implementation KXPath, has a rather
> complete WXS Part 2 implementation. This is code whose idea is to end up in

AFAICS, XPath and XQuery are a totally different ballgame. Much more geared 
towards determining if certain elements are present on the fly so to speak. 
IMHO this is more something that more programs could use and therefore should 
be part of one of the core components of KDE.

I can imagine that currently kxml_compiler and kwsdl_compiler are not in their 
proper place, certainly not in the light of their utility which is I think 
broader than just kdepim.

Regards,

-- 
R.F. Pels,  3e Rompert 118,  5233 AL  's-Hertogenbosch,  The Netherlands
+31736414590        ruurd at tiscali.nl       http://home.tiscali.nl/~ruurd





More information about the kde-core-devel mailing list