Console Based XML parser available
by Matthew "Ashteth" Kee · in Torque Game Builder · 10/24/2005 (1:21 pm) · 23 replies
I recently needed an XML parser for level saving and loading so I went ahead and built a console object to assist with this task. What I ended up creating was a stack based XML parser that is based upon the TinyXML library and the pre-existing pickler/persistance resource for TGE owners. Anyways, its still fairly rudimentary but may be of interest to some. An example is included with the resource. If you have any problems or feature requests, feel free to e-mail me (address in profile) or leave a reply here.
XML Console Parser
XML Console Parser
#22
As for whether or not to use the built in one, thats up to you -- the one I posted, is a SAX parser, where as the one in 1.5 is a DOM parser ... each has it's benefits and pitfalls ... depending on requirements.
the EXPAT SAX Parser requires you to also use an external library, which is not included with TGB (libexpat) ..
as for the TinyXML based parser that this thread was started about, I've never used it --
08/10/2007 (3:30 pm)
James, the XMLObject available in 1.5 is new -- this thread was created prior to 1.5 even being in public beta.As for whether or not to use the built in one, thats up to you -- the one I posted, is a SAX parser, where as the one in 1.5 is a DOM parser ... each has it's benefits and pitfalls ... depending on requirements.
the EXPAT SAX Parser requires you to also use an external library, which is not included with TGB (libexpat) ..
as for the TinyXML based parser that this thread was started about, I've never used it --
#23
I took a look at it a while ago and found a few differences but nothing huge (seemed like compatibility updates more than anything). I recall seeing the TinyXML source files (or at least license notifications) in there but I'm not 100% sure if the 1.5.x code is based on this resource or not...
08/12/2007 (10:40 am)
@David: I think James was wondering if the TinyXML based XML Parser originally linked in this forum was the same that is now found in the TGB 1.5 tree.I took a look at it a while ago and found a few differences but nothing huge (seemed like compatibility updates more than anything). I recall seeing the TinyXML source files (or at least license notifications) in there but I'm not 100% sure if the 1.5.x code is based on this resource or not...
Associate James Ford
Sickhead Games