{"id":108,"date":"2007-11-17T15:25:21","date_gmt":"2007-11-17T15:25:21","guid":{"rendered":"http:\/\/www.mikecosgrave.com\/blog2006\/?p=108"},"modified":"2007-11-17T15:25:21","modified_gmt":"2007-11-17T15:25:21","slug":"xml-editor-for-students","status":"publish","type":"post","link":"https:\/\/mikecosgrave.com\/blog2006\/uncategorized\/xml-editor-for-students\/","title":{"rendered":"XML editor for students"},"content":{"rendered":"<p>I spent this wet morning looking at XML editors for my digital history masters students. XML is essential for managing large collections of historical documents, and is part of a family of markup languages which now run the web, and provide the underlying infrastructure for &#8216;web services&#8217;. Once they understand the principles XML is a set of skills which will be useful in many contexts from web design to ontology creation.<!--more--><\/p>\n<p>There are a couple of things I need &#8211; the editor must have a nice familiar GUI, be easy to use, must validate, should provide some hand-holding on tag entry. Ideally it should run on a USB key since we can&#8217;t go around casually installing stuff on college PCs, and it needs not to fall foul of the windows firewall in pulling in public dtds. Yes, It needs to run in windows, because that is what the students have.<\/p>\n<p>I have a shortlist &#8211; Cooktop 2.5, XMLpad, XMLPro, XML Copy Editor and Bonfire &#8211; and I whittled it down pretty quickly. Bonfire is a nice IDE, but needs more configuration to set it up for XML that I want to bother with. XMLPad and XMLPro are ok, but a bit lightweight. XMLPad doesn&#8217;t seem to do XSLT, and I want that so I can teach the differences between structure and presentation. XMLPro appeared not to be installing properly, but actually was &#8211; it was just leaving a message box hanging so I think it as just a badly configured installer. Whatever it is, I&#8217;m not giving out to students to confuse them.<\/p>\n<p>Very  quickly we get down to Cooktop and XML Copy Editor. Cooktop is very much a windows app, it installs using a .msi installer and it did install on the USB key fine but tripped the firewall. The students, if they are using it off the USB key in the History computer lab,  certainly won&#8217;t have permission to allow progams to bypass the firewall!.<\/p>\n<p>XML Copy Editor is 99% ok &#8211; it validates, it comes with a good selection of DTDs built in, handles XSL and runs fine off the USB &#8211; mostly. It uses a catalogue file to handle the DTDs it &#8216;knows&#8217; for smart tag entry, and I found how to add DTDs to that fairly easily from a post on the forums on the XML Copy Edit page on Sourceforge. However, there is one small problem.  When I looked at the catalogue in the USB key, I found it pointed to DTDs back on C: like this<\/p>\n<p>&lt;public publicId=&#8221;-\/\/TEI P5\/\/DTD Main Document Type\/\/EN&#8221; uri=&#8221;file:\/\/\/C:\/Program%20Files\/XML%20Copy%20Editor\/dtd\/tei\/p5\/tei_all.dtd&#8221;\/&gt;<\/p>\n<p>Now I can fix this, but it means I can&#8217;t just tell the students to go off and install it themselves. I can create a portable version on a USB key with an edited catalogue and distribute that. This will work fine, as long as their USB keys hotplug as Drive E: It is a little bit of work, but it is worth it, so I think that&#8217;ll be the job for the rest of the day. I may even show them how to add their own DTDs to the catalogue.<\/p>\n<p>I still want a proper XML editor for myself &#8211; I had a very old copy of XMLSpy 2.0 that came free on a magazine years ago. I really like XMLSPy &#8211; it is great but it costs \u00e2\u201a\u00ac399 and the alternative, Oxygen, has a sale on their academic license this month at $48. They both do things I want &#8211; talk to databases and generate DTDs from existing documents, which is the fastest way to turn a big database into proper XML. I did this with several thousand records from the 1901 Census into XML with a view to linking them with relevant text sources but I never finished it off and now I want to pick up that project again.<\/p>\n<p>If I was being good, I&#8217;d make links to all of those programs but it&#8217;s Saturday so you can just google them! Right now, they are trying to finish the loft conversion here by making a hole for the stairs in the room I&#8217;m in, which is a good excuse to hit &#8216;publish&#8217; and run!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I spent this wet morning looking at XML editors for my digital history masters students. XML is essential for managing large collections of historical documents, and is part of a family of markup languages which now run the web, and provide the underlying infrastructure for &#8216;web services&#8217;. Once they understand the principles XML is a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20,77,78],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-digital-history","tag-teaching-learning","tag-tech"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/mikecosgrave.com\/blog2006\/wp-json\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mikecosgrave.com\/blog2006\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mikecosgrave.com\/blog2006\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mikecosgrave.com\/blog2006\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mikecosgrave.com\/blog2006\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":0,"href":"https:\/\/mikecosgrave.com\/blog2006\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"wp:attachment":[{"href":"https:\/\/mikecosgrave.com\/blog2006\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mikecosgrave.com\/blog2006\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mikecosgrave.com\/blog2006\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}