Home Blog Projects Wallpapers Themes Fonts

Blog

Snow Leopard & Perl – Having 64-bit babies

Posted on Tuesday, September 29th, 2009 under Code Design | 3 comments

Sadly, one of my favorite lil' Mac tools, Validator, which is perfect for validating XML files against custom Document Type Declarations (DTDs), is currently not working with Snow Leopard, or more specifically, Snow Leopard's implementation of 64-bit Perl.

There is an easy way have 10.6 load the 32-bit version of Perl, but unfortunately, even after doing so, it looks like Validator is still having some other issues.

Screenshot of Errors

There is no contact information on Robert Crews' website, so I went searching for some viable replacements. Apple has a Developer Connection article installing a local W3C HTML Validator and you can download nifty Stand-Alone HTML/XHTML Validator for the Mac (which Veerle made some nice icons for), but neither will validate against a custom DTD.

Enter XMLMate ... the open-source, robust TextMate plugin for "Checking XML and XHTML documents for Well-Formedness and Validity while editing them in TextMate with support for DTD, W3C XML Schema, RELAX NG, Schematron, XInclude, XML Catalog, and XPath 2.0 Visualizer". Yeah. Wow, indeed.

I still don't own a copy of the pricey TextMate (despite how much I like it), but this add-on is nice enough for me to click thru the license screen every launch. Enjoy.

Related Posts:

Snow Leopard wants to replace your Automator Plugins with Services
If you are like me and love the wonderfully scripted things that Apple's Automator application can provide, you are going to be pretty excited for some of the changes in Mac OS X 10.6. You will, however, find that if you were using any custom or third-party actions (i.e. those by Dropbox, Junecloud or AppZapper) ...
Before You install Snow Leopard
I saw that Apple had put out this handy list of software that is incompatible with Leopard, and I thought it might be helpful to start collecting a list of smaller third-party apps that may cause issues. Here are mine so far ... feel free to comment with any others you are finding. Applications Incompatible with ...
2012 Browser Plugin Rundown
I recently moved to the newest version of OSX, 10.8 Mountain Lion, so that of course means that I spent some time updating applications, clearing out old plugins and just in general cleaning out. For your benefit and my own archival reference, here is a short list of all the plugins and extensions I had ...
Adding More Coda Books – Version 1
After Sitepoint showed us all how easy it is to add custom references to the "Books" section of Coda (using their excellent HTML and CSS references as examples), I began my search for even more handy code guides with which to fill out that big empty gray space at Command+6. Jon Hicks had some good stuff ...
Google Chrome on the Mac
It has been a few days now since Ars Technica announced Google's Developer Preview for Chrome on the Mac and I have been loving every minute of it. While I do miss the robust plugin architecture of Firefox and the slickness of Safari 4's "Top Sites", Chrome's speed trumps all. New tabs and windows are quick ...
  • Joe Schneider

    I had no idea that this app existed, now I am disappointed that it does not work in SL. As to contacting the author, the site for the app is location on MobileMe. His username is rcrews, so you can send an email to that mobile me name. I do not know what mobile me addresses look like and/or if the old @mac.com still works.

  • Joe Schneider

    I found a way to get this sucker up and running in 64 bit. In the command line type "sudo cpan XML::LibXML" and if it is the first time you have ever run cpan, it will ask some questions. Responding to them with the defaults will work just fine. After that open /Applications/Validator.app/Contents/Resources/script in a text editor. Comment out line 84 ( use lib "$Bin/site-perl";) so that it will load Snow Leopard's perl libraries instead of the ones packages with Validator. I just dropped an xml file and it validated just fine!

    I wish I knew about this when I was building an ajax interface for work!

  • http://www.drastudio.com Oscar

    I figured I could use his dotMac username and the default domain email address, but I also figured that if he didn't have it listed, it was for a reason.

    And sweet! That worked perfectly! :)

 

Back to Top