From liam at holoweb.net Mon Nov 16 14:43:58 2015 From: liam at holoweb.net (Liam R E Quin) Date: Mon, 16 Nov 2015 17:43:58 -0500 Subject: [tpm] Solutions and kibitzers In-Reply-To: <54e9f21b309f77df7093d30ac3547e21.squirrel@mail.vex.net> References: <54e9f21b309f77df7093d30ac3547e21.squirrel@mail.vex.net> Message-ID: <20151116174358.314b16b6@holoweb.net> On Tue, 22 Oct 2013 12:45:20 -0400 arocker at Vex.Net wrote: > It seemed to be a simple problem, parsing some sort of *ML stream, and > wc's output on the script was 25 88 526. (6 of those 25 lines do the > actual work.) > > To my surprise, I've received all sorts of abuse for not using an XML > parser module. (To which the poster may or may not have had easy access.) If they had Perl they had an XML parser. The problem with handling XML as text is that people often don't account for what seem like corner cases. Some examples: 1. these are all the same in XML: The following variant may or may not be the same, but is still legal: Did you account for all of them? 2. text entities, ]> 3. UTF-8 is common on Unix systems but other encodings are legal, and are signaled with an XML encoding declaration; did you handle them? A five-minute hack that isn't for production is one thing; a program or production is another. Many (not all) things you might use Perl for with XML are better done with XSLT and/or XQuery. Liam -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ From liam at holoweb.net Mon Nov 16 14:44:56 2015 From: liam at holoweb.net (Liam R E Quin) Date: Mon, 16 Nov 2015 17:44:56 -0500 Subject: [tpm] Solutions and kibitzers In-Reply-To: <54e9f21b309f77df7093d30ac3547e21.squirrel@mail.vex.net> References: <54e9f21b309f77df7093d30ac3547e21.squirrel@mail.vex.net> Message-ID: <20151116174456.70620d35@holoweb.net> On Tue, 22 Oct 2013 12:45:20 -0400 arocker at Vex.Net wrote: > Would anyone care to read the discussion and comment? Hah, and I didn't notice this mail was dated 2013, sorry for the noise! Liam -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ From dave.s.doyle at gmail.com Wed Nov 25 16:05:46 2015 From: dave.s.doyle at gmail.com (Dave Doyle) Date: Wed, 25 Nov 2015 19:05:46 -0500 Subject: [tpm] Google hangout for tonights meegin Message-ID: https://plus.google.com/hangouts/_/hoaevent/AP36tYctoGZukvR2BmWI-yFW1XN2tlSnMzDL3gxlrKJp1laB9HnX8w?hl=en&authuser=0 -- dave.s.doyle at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From arocker at Vex.Net Thu Nov 26 06:16:30 2015 From: arocker at Vex.Net (arocker at Vex.Net) Date: Thu, 26 Nov 2015 09:16:30 -0500 Subject: [tpm] A link to the lectures I mentioned last night at TPM Message-ID: <2b456ad29e86a012c3cd64e3c16b53a2.squirrel@mail.vybenetworks.com> https://www.hpematter.com/event/chua-lectures-first-12-part-series-hp-labs