title_body: If you purchased this item from Amazon, delete the item and download it from the Cloud I'll probably end up asking Amazon for a refund on:
  
  
    XQuery: Search Across a Variety of XML Data
    
    Product details
  
  Paperback: 762 pages
  Publisher: O'Reilly Media; 2 edition (Jan. 7 2016)
  Language: English
  ISBN-10: 9781491915103
  ISBN-13: 978-1491915103
  ASIN: 1491915102
  
  
  
  due to a persistent error:
  
  
    Error
    
    An error occurred.  If you purchased this item from Amazon, delete the
    item and download it from the Cloud.
  
  
  Short of setting the Kindle to factory defaults I'm at a loss, but can speculate that perhaps the code in the book might be causing some problems.
  
  see also:
  
  Paperwhite error on open book, how do I get the error log?
upvoted_answer: Most likely you downloaded a partial file or it was corrupted somehow. Just delete it from your device and try again. (Alternatively, remove it by going  to Manage Your Content and Devices. 
  
  Don't delete the ebook from all devices, just the one device you are working on. 
  
  Failing that, you can also contact Oreilly or even the author and include a receipt. Oreilly is a great publisher, and they would probably be able to send you via email  the file to you if you asked nicely. 
  
  Quality control on Oreilly ebooks is  pretty high. I doubt there's a formatting issue. The file is 5mb, not too big. But it might be worthwhile trying to view it on a Kindle app on a tablet or on Kindle for PC Desktop. 
  
  Occasionally I have an issue downloading certain ebooks. Often it's a matter of just deleting the first version you downloading and retrying. Sometimes it gets stuck, but I'm generally able to download everything. 
  Hope this helps!