irrXML parsing

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
jacaru

irrXML parsing

Post by jacaru »

Hello,

Probably any of you have encountered this issue before and have a fast solution.

I'm parsing an xml file using irrXML and i would like to know how to parse xml elements like " or ó to their correct UTF8 characters.

Thanks.
Guest

Post by Guest »

I guess this is the place, in CXMLReaderImpl.h

Code: Select all

	//! generates a list with xml special characters
	void createSpecialCharacterList()
	{
		// list of strings containing special symbols, 
		// the first character is the special character,
		// the following is the symbol string without trailing &.

		SpecialCharacters.push_back("&");
		SpecialCharacters.push_back("<lt;");
		SpecialCharacters.push_back(">gt;");
		SpecialCharacters.push_back("\"quot;");
		SpecialCharacters.push_back("'apos;");
		
	}
I miss there more special characters:

á é í ó ú ü ç Ç

Does anyone know a table where i migh look up all the codes?

Thanks.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
jacaru

Post by jacaru »

got it now, thanks!
Post Reply