accessing numerical attribute values 2004-02-05 - By Andy Clark
John A. Mitchell wrote: > double value = atof(s); > [...] > > Now I need to do this in "Java" using xerces-j > > I don't know where to look to figure this out.
This really isn't the right forum for this question because it's really about Java programming. But, to answer your question, try:
double value = Double.parseDouble(s);
It will throw a NumberFormatException if it's bad and you need to catch that exception.
-- Andy Clark * andyc@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|