ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:    
Ambiera Forum > irrXML
Aren't XML strings supported?
Author Text

2010-07-29 01:56:01

Looking through the source, it looks like createIrrXMLReader() takes in a char* as well, so the whole library should be able to operate on strings just as well as files.
I have this very simple XML file that contains this text:
<main number="1"/><A param1="1.5"/><param2="1.5"/>

and this is successfully parsed when I start with
 IrrXMLReader* xml = createIrrXMLReader("config.xml"); 

But if I have a
 char* XMLpacket[someLength] 
that contains this exact same information in ascii characters as the file, the parser no longer works if I use this:

IrrXMLReader* xml = createIrrXMLReader( XMLpacket );

Basically, the main parser loop ( while(xml && xml->read()) ) exits immediately.

I tried terminating the array with combinations of CR, LF, null, etc. with no results.

What am I missing?

Registered User
2010-07-29 12:17:14

irrXML expects XMLpacket to be a file. So it tries to open a file named like the content of your xml file.

Create reply:

Posted by: (you are not logged in)

Enter the missing letter in: "Internat?onal" (you are not logged in)




Forum Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Image [img][/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]



Software: Ambiera Light Forum. © 2008-2015 Nikolaus Gebhardt, Ambiera e.U.