If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

How does the parser know which is meant to be a decimal, which a string, which a date, etc.

As has been said above, they are all text. If you can tell me how you can find the difference between them using the schema please let me know. I don't think the schema tells you if something is a time, a number, etc..

When I started to work on this I was under the impression that things would be simple in php because numbers and string normally change depending on whats being done to them and if you multiplied two variables they would try to cast them self as numbers. And javascript would be harder cause they don't. WRONG

As has been said above, they are all text. If you can tell me how you can find the difference between them using the schema please let me know. I don't think the schema tells you if something is a time, a number, etc..

The "How do you know which is a number" question. You have to know if your going to use it to preform math.

schemas should have a data type attribute - that's how you could tell the software what to look for.
<xs:element name="prizeamount" type="xs:decimal"/>
<xs:element name="prizecode" type="xs:integer"/>

You know, for being the next BIG thing on the internet, there is so little information about it. I have found nothing about retrieving elements from the schema. Spent yesterday looking. From what I found out the schema is just used in writing the xml file and that's it. If you find out any thing let use know.