Say i have these Xml tag...
how do i exactly extract the 1 and 10 separately from "1_9"
Now i am using substring to extract 1 and 9, it works well...
But if the 9 becomes 10 (double digits), it will have exception if i have to loop the Xml and send the maxpage to the server...
Thanks
VB.NET:
<book title=”Harry Porter page="1_9”>
<new id=”100”>China News</new>
<new id=”101”>Street paper</new>
<new id=”0”>none</it>
…….
<new>….</new>
</book>
how do i exactly extract the 1 and 10 separately from "1_9"
Now i am using substring to extract 1 and 9, it works well...
But if the 9 becomes 10 (double digits), it will have exception if i have to loop the Xml and send the maxpage to the server...
VB.NET:
page = xdoc.SelectSingleNode("[url=""]//book/@page").Value.Substring(0[/url], 1)
maxPage = xdoc.SelectSingleNode("[url=""]//book/@page").Value.Substring(2[/url], 1)
Thanks