Hour 7. Data Typing in XML

The previous hour introduced the attribute list, which allows you to include additional criteria about a node. Your next step is to provide additional qualifiers that can be used on the data. A qualifier specifies a type that the data component must conform to.

The second major topic of this lesson is the parseError object, which contains easily accessible information concerning the reasons for and location of the last error that was generated. This object is an enormous aid in debugging your code.

In this hour, you'll learn the following:

  • Data typing and the different data types supported by the dt namespace

  • Using assignments to change the data type of an active node

  • The parseError object and its role in error handling ...

Get Sams Teach Yourself XML in 24 Hours 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.