To Do List Data Files

The To Do list application uses two different types of XML files: One file, userInfo.xml, describes all users with access to the application. The second type of file represents a To Do list. Each user will have one To Do list file.

userInfo.xml

userInfo.xml contains the name, password, and profiles of all the users who have signed up to use the To Do list application. It also contains information about who can edit which lists. Figure 17-7 shows an example of userInfo.xml.

XML representing information about users

Figure 17-7. XML representing information about users

Let's walk through this file. As with all valid XML files, the first line (❶) declares that this is an ...

Get The Book of JavaScript, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.