XML one-liner (if possible)

Sarah Reichelt sarah.reichelt at gmail.com
Wed Jul 14 08:08:37 EDT 2010


>> After every call to a revXML function, you can check the result for
>> "xmlerr" which indicates a problem.
>
> ...with certain exceptions.
>
> put revXMLNextSibling(tXMLID, tNode) into tNextNode
>
> will return empty if there's no next sibling. So *mostly* you need to
> check for "xmlerr" to see if you're done, and *sometimes* you also
> need to check for empty or get stuck in an endless loop.


Sure, but I think the 3 xml functions I suggested all return xmlerr if
there is a problem.
So in this case, a check for xmlerr will be sufficient.

Cheers,
Sarah



More information about the use-livecode mailing list