U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Xmlize hates spaces
Xmlize hates spaces [message #25996] Wed, 24 March 2010 16:58 Go to previous message
koldo is currently offline  koldo
Messages: 3461
Registered: August 2008
Senior Veteran
Hello Mirek

Xmlize hates spaces in .exe name and in variable names.

If the .exe file name has spaces, for example "My program.exe", StoreAsXMLFile() saves .xml file with this header:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE My program>
<My program>
...


LoadFromXML() cannot parse this Sad


The same for this. If a variable is xmlized like this:

void MyClass::Xmlize(XmlIO xml) {
	xml
		("my var", myVar)
	;
}


StoreAsXMLFile() saves it without any error.

<my var value="1100"/>


But LoadFromXML() cannot parse this Sad

If this cannot be fixed in LoadFromXML(), at least StoreAsXMLFile() could return an error or throw an exception.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: charset conversion
Next Topic: How to program real U++ applications
Goto Forum:
  


Current Time: Mon Sep 14 12:24:50 GMT+2 2026

Total time taken to generate the page: 0.00543 seconds