Print
Category: Zeus Framework
Hits: 2985

ZeusBase-Library

3.2 XML_Service

The XML-Service module is an adapter between an XML API and the Zeus-Framework. Mainly the DOM Structure and the XSLT Processing is supported so far. The XML API is wrapped in Zeus-Interfaces. This allows to use XML across the heterogenous module architecture. Following API's are supported:

The XML_Service provides following interfaces:

The interfaces are located in zeusbase/System/Interfaces.

Two objects are exported, the IXMLParser and IXSLProcessor. These objects can be created using the LibraryManager:

#include <zeusbase/System/LibraryManager.h>
#include <zeusbase/System/Interfaces/IXMLParser.hpp>

...

  TAutoPtr<IXMLParser> ptrParser;
  if (LibraryManager.createObject(TString(L"XML_Service"), 
                                  TString(L"IXMLParser"), 
                                  ptrParser.getInterfaceReference()) == RET_NOERROR)
  {
    //Now the XML Parser can be used
    ...
  }

3.2.1 Extras

The Zeus-Framework is able to run without the XML_Service module, but all XML based classes like X-Objects, XML-File classes etc. won't work.

The Xerces and Xalan can be built manualy. Make sure you build the libraries as UNICODE. Zeus-Framework is based on UNICODE strings. For other API's implement the interfaces of the XML_Service and wrap the API objects.