[erlang-questions] What is "Rest" in the return of xmerl_scan:string() ?

Dmytro Lytovchenko dmytro.lytovchenko@REDACTED
Tue Apr 25 13:03:40 CEST 2017


In all parsers, that would be the tail of input, which does not match the
rules anymore. Empty string if your input is correct.

2017-04-25 9:14 GMT+02:00 达曾 <johnzeng91@REDACTED>:

> Hi all,
>   I am using xmerl_scan to decode a xml string, but when calling
> xmerl_scan:sting, it returns in a tuple:
>
> {xmlElement{}, Rest}
>
> I've searched about this API, looks like we all ignore the Rest in return.
>
> So what is the Rest used for?? Should I ignore them??
>
> Here is the defination of  xmerl_scan:string/1 in erlang OTP 19,
>
> *string(Text::list()) -> {**xmlElement()**, Rest}*
>
>
>  Great thanks.
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170425/ef58a263/attachment.htm>


More information about the erlang-questions mailing list