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

达曾 johnzeng91@REDACTED
Tue Apr 25 09:14:32 CEST 2017


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170425/e03cb9fe/attachment.htm>


More information about the erlang-questions mailing list