Quote:
Originally Posted by Alex Vincent
qwertyjjj, XML has no concept of numbers, believe it or not. A parsed DOM of your document will look like this:
multiplyfactor (element)
-- .5 (text node, whose value is a string)
Your best bet would be to have some custom scripting to identify elements containing numbers, and then convert their contents to actual numbers using parseInt or whatever your language's equivalent is.
|
What is the best way to do this?
Give each XML item an attribute with the datatype or the schema should contain the element datatype and then the software can check the schema?