Category: C/C++

C and C++ related stuff.

XMLObject v1.0 Beta Release

I have released the existing XMLObject code as a v1.0 Beta, and the details can be found in this GG .plan. The current object supports the majority of the expat libraries standard callbacks, with the exception of it’s Schema/DTD callbacks,…

XMLObject Updates

Ok, I’ve finished some more of the XMLObject code, and now have the following SAX methods implemented as TorqueScript callbacks: onElementStart(%this, %name, %attributes) onElementEnd(%this, %name) onCharacterData(%this, %name, %data) // %name is a reference to the last element started onProcessingInstruction(%this, %target,…

TorqueScript XML Object Loads

I’ve managed to get the XMLObject to a fairly useable point, so far, the following script, is useable: [js] function sceneObjectParser::onElementStart(%this, %name, %atts) { switch$(%name) { case “objects”: %this.objectBlock = true; default: if(%this.objectBlock) { %obj = new (%name)() { class…

TorqueScript XMLObject

I have started working on an implementation of Expat (the Gnome XML Parser) library into TGB, and expect that a large portion of the code should work with TGE as well, as it’s just a simple Console Object being added…