Closed
Description
Description
The data coming from XML is always string. Additional support could be added for XML Schema, XML Schema instance type hints, making the decoded information much more correct.
Example
<foo xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<one xsi:type="xs:integer">123</one>
<two xsi:type="xs:float">123.23</two>
<three xsi:nil="true"/>
</foo>
could produce:
array
one: int(123)
two: float(123.23)
three: null
but currently produces
array
one: string "123"
two: string "123.23"
three: string ""