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

Re: [xml] XML beginner's question



On Tue, November 18, 2008 1:09 pm, Callum Gibson wrote:
> On 18Nov08 12:24, Andrew M. wrote:
> }Code runs fine without printf(), so I am supposing xmlNodeListGetString()
> }might be failing. Any suggestions?
>
> cur is uninitialised in main() at the following line:
>
> 	cur = cur->xmlChildrenNode;
>
> You probably mean doc->children (or doc->xmlRootNode if you're going to
> use
> the old libxml1 compat calls) or better still, call
> xmlDocGetRootElement().
>

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?

Andrew M.



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