≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Reading/Parsing xml file
Posted by:
(you are not logged in)
Enter the missing letter in: "I?ternational"
(you are not logged in)
Text:
[quote][b]User[/b] wrote: Does this parser still work? I ask because i've added the source to my project, but it doesn't appear to read the files. My code is pretty simple: [code] IrrXMLReader* xml = createIrrXMLReader("sample.xml"); while(xml && xml->read()) { MessageBox("Inside While Loop", "Confirmation", MB_YESNO | MB_ICONQUESTION); switch(xml->getNodeType()) { case EXN_TEXT: break; case EXN_ELEMENT: break; } } delete xml; [/code] My XML file is the sample one from the example. The MessageBox is for debugging purposes. So what i've found is it opens the file, but the call to read fails. xml->read() returns 0 every time. I've tried multiple XML files... they all fail. So what am I doing wrong?[/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