Output for the allErrors Example

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - DOM Reference

Output for the allErrors Example

When you build and run the allErrors example, you should get the following output, displayed in a message box.

Error as returned from validate():

        Error Code    : -1072898028
        Error reason  :
Element 'review' is unexpected according to content model of parent element 'book'.
Expecting: price.
        Error location:
/*[local-name()="books" and namespace-uri()="urn:books"]/book[2]/review[1]
        Errors Count  : 2

Error items from the allErrors collection:

ErrorItem[0] :
        reason:
Element 'review' is unexpected according to content model of parent element 'book'.
Expecting: price.
        location:
/*[local-name()="books" and namespace-uri()="urn:books"]/book[2]/review[1]

ErrorItem[1] :
        reason:
Element 'review' is unexpected according to content model of parent element 'book'.
Expecting: pub_date.
        location:
/*[local-name()="books" and namespace-uri()="urn:books"]/book[3]/review[1]