You need to set a flag to let the code know whether you are reading the title element within the entry.
需要设置一个标志让代码知道读取的是不是条目内的title元素。
The other solution is that you can set a flag field somewhere else in the database to notify that data has been updated safely.
另一个解决方法是,你可以在数据库中设置一个标志字段别处去通知数据已更新安全。
Also notice that you set a flag (the Boolean variable done) to identify when you reach the end of the content that you are interested in.
还需注意,您设置了一个标记(布尔变量done)来确定何时到达感兴趣内容的结束部分。
应用推荐