Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 3360
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: Wed May 08 02:48:23 CEST 2024

Total time taken to generate the page: 0.02015 seconds