≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Aren't XML strings supported?
Posted by:
(you are not logged in)
Enter the missing letter in: "Internatio?al"
(you are not logged in)
Text:
[quote][b]Paul[/b] wrote: 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: [code]<main number="1"/><A param1="1.5"/><param2="1.5"/>[/code] and this is successfully parsed when I start with [code] IrrXMLReader* xml = createIrrXMLReader("config.xml"); [/code] But if I have a [code] char* XMLpacket[someLength] [/code] that contains this exact same information in ascii characters as the file, the parser no longer works if I use this: [code]IrrXMLReader* xml = createIrrXMLReader( XMLpacket );[/code] 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?[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact