Learning from our mistakes!!!!!!!!!!

Hello everyone!!!

I wanted to share one of my experience while working on Hoccleve Archive project. This project invloves recovery of computer generated lexicographical files created in the early 1980’s on a now-lost piece of custom built software. We discovered how to open the files and wrote a custom script that transformed them into both simple .txt and XML files. The XML version were extensively tagged for grammatical information useful to literary scholars of middle English.

Chaucer_Hoccleve

In the process of extracting information from XML and displaying it on the browser we were struck at one point because of some silly technical error. The error was because of XML escape sequences.

xmlwriter-xml-editor_256x256

The XML Specification has 5 predefined entities representing special characters. Any word which has to be displayed as it is which contains these special characters should perform some preprocessing.

Character             XML Entity Replacement                        XML Numeric Replacement

”                                    "                                                   "

<                                     &lt;                                                      &#60;

>                                     &gt;                                                     &#62;

&                                  &amp;                                                   &#38;

‘                                   &apos;                                                  &#39;

For example, for displaying “v&a” on browser we have to perform preprocessing on it. It should be written as “v&amp;a” in the XML document for displaying “v&a” on the browser. Hope, this post is informative for people working with XML documents.

References:

 

2 Comments on Learning from our mistakes!!!!!!!!!!

  1. desy
    May 11, 2015 at 12:09 am (9 years ago)

    i agree about your post, don’t stop if we had a mistakes, we must learn from it, inspiring post

    Reply
  2. Okky Steviano
    October 12, 2015 at 3:00 am (9 years ago)

    can’t say more, i’m completely agree with what you said, everyone’s making mistake at one point of their life. it’s natural, keep trying is the best thing to do 🙂

    Reply

Leave a Reply