View Single Post
Old 12-11-2012, 09:06 AM   PM User | #14
qwertyjjj
New Coder

 
Join Date: Dec 2007
Posts: 59
Thanks: 1
Thanked 0 Times in 0 Posts
qwertyjjj is an unknown quantity at this point
Quote:
Originally Posted by sunfighter View Post
It's easy enough, after parsing the xml, to insure that you have integers when you do math by forcing them to be numbers.
Ok, but imagine that xml file has 100 different elements.
How does the parser know which is meant to be a decimal, which a string, which a date, etc.

You either hardcode it in the software or you check the schema?
qwertyjjj is offline   Reply With Quote