Homepage Robert Eber

  • Schrift vergrößern
  • Standard-Schriftgröße
  • Schriftgröße verkleinern
Willkommen auf der Startseite

XML parser for c++

E-Mail Drucken PDF

If you want to parse XML files with C++, Xerces-C++ is nice tool to do it. http://xerces.apache.org/xerces-c/

Some things you have to care about:

File encoding:  If not set to the correct file encoding, the parser will produce errors. Use "XMLUni::fgUTF8EncodingString" for UTF-8 encoded files.

Parsing XML from a string: Create a  MemBufInputSource with options MemBufInputSource((const XMLByte*)myxml.c_str(),myxml.length, "dummystring", false); Here myxml.length should be the bytes(!) not length of your xml string.

 Before you can transcode any UTF-16 given XMLCh*, you have to initialize the tools by adding XMLPlatformUtils::Initialize();

The includes used by Xerces are <stdexcept>,<list>,<sys/types.h>,<sys/stat.h>,<unitstd.h>,<errno.h> and for MemBufInputSource <xercesx/framework/MemBufInputSource.hpp>

You should use "namespace xercesc".

Zuletzt aktualisiert am Donnerstag, 07. Juli 2011 um 10:06 Uhr
 

Apache and PHP with Oracle Database

E-Mail Drucken PDF

Apparently, Apache and PHP need an extra plugin to handle connections with an external Oracle Database. This Plugin is called "oci8" and is installed as an option with PHP.

There are several ways to install oci8 plugin, on my ubuntu test system, I chose an easy one:

  • download instantclient-basic
  • download instantclient-sdk from the oracle website
  • unzip both
  • set some symlinks to the file with extension *.so.1.11 e.g. in the same directory
  • libocci.so -> libocci.so.*
  • libclntsh.so -> libclntsh.so.*
  • run "ldconfig"
  • install "pecl" if not done so far
  • run "pecl install oci8" (if everything is in the right place, it will finish without an error)
  • get the "libaio-dev"
  • in the php.ini file in your PHP folder, add an extra line with "extension=oci8" under the extensions area
After restarting your apache, you should now be able to connect to an Oracle database using oci8.

 

Zuletzt aktualisiert am Donnerstag, 07. Juli 2011 um 09:51 Uhr
 

Tag der offenen Tür am Campus Nord

E-Mail Drucken PDF

Am Samstag den 25. September 2010 ist am KIT Campus Nord in Eggenstein-Leopoldshafen Tag der offenen Tür. Es gibt ein riesiges Programm zu erkunden! Für das leibliche Wohl ist ebenfalls gesorgt. Das Institut für Experimentelle Kernphysik ist mit seinem Stand vor dem Gebäude 401 zu finden.

Das der Campus Nord an diesem tag Fußgängerzone ist, sollte man am Besten mit Bus oder Bahn anreisen.

Schaut mal vorbei! 

Weitere Infos auf www.kit.edu 

Zuletzt aktualisiert am Dienstag, 21. September 2010 um 23:13 Uhr
 

Frohes Neues Jahr!

E-Mail Drucken PDF
Frohes Neues Jahr 2011!
 

Hoepfner Burgfest

E-Mail Drucken PDF
Das Hoepfner Burgfest oeffnet wieder am Pfingstwochenende seine Pforten. Wer ist dabei?
 


Seite 1 von 3

Umfragen

Wer ist online

Wir haben 1 Gast online

Werbung

Empfohlene Links:

Schlagzeilen

Die Webseite wurde aktualisiert. Auf der Startseite ist nun nur noch die neue Seite erreichbar. Alle wichtigen Links wurden umgezogen. In der nächsten Zeit wird noch eine kleine Anpassung und Umstrukturierung der Links stattfinden, um eine bessere Übersicht und leichtere Navigation zu gewährleisten.

 Robert