156 CHAPTER 4 XPATH, XPOINTER, XINCLUDE, AND THE FUTURE error. To prevent this from happening, the document could add an xi:fallback element to handle an unexpected case: External Resource Problem Processing this document results in the following: External Resource Problem The contents of xi:fallback were added to the document including the whitespace, such as the line feeds. It is also possible to replace an error condition with no content. You do this simply using an empty xi:fallbackelement: The resulting document in this case is as follows: The academic element still contains the insignificant whitespace from the base document, which is why a blank line appears in the output. You can also perform error handling in cases where an XPointer expression may fail. Using the xpointer attribute, the courseelement identified by the ID c6is to be selected from the document. Looking at the document in Listing 4-7, you already know that no element with this ID exists and expect it to fail: Element not found
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Cheap Web Hosting services
No comments yet.
Sorry, the comment form is closed at this time.