XML from variable instead of file

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
nander
Posts: 6
Joined: Fri Feb 26, 2010 6:35 pm

XML from variable instead of file

Post by nander »

Hi,

I want to use IrrXML to parse XML that came from a different source then a file on the hard disk ( I use SFML for networking and receive XML-formatted messages), and wonder if this is possible, and if it is, how?
Github source directory

Nander
Insomniacp
Posts: 288
Joined: Wed Apr 16, 2008 1:45 am
Contact:

Re: XML from variable instead of file

Post by Insomniacp »

once the file is in memory you can use createMemoryReadFile at that memory location and specify the length. This will give you an IReadFile* which you can then pass that into the createXMLReader function.
Post Reply