Re: [xml] XML beginner's question

On 18Nov08 17:41, Andrew M. wrote:
}Thanks, that solved it.
}Unfortunately I have another question (which may be very very stupid :D ):
}how do I cast a xmlChar to a float?

You don't, you need to parse it somehow. Take a look at atof(3) for a simple
example. Note, that returns a double. In general floats are a waste of time
due to limited precision. Unless you really need the bytes, just save yourself
grief and use doubles everywhere.



Callum Gibson @ home

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]