Skip to content

Tag Archives: xhtml

bad xml smells

I’m used to refactoring code smells, but sometimes you can catch a bad whiff in XML too. Before: < ?xml version="1.0" encoding="UTF-8"?> <mets TYPE="urn:library-of-congress:ndnp:mets:encyclopedia:encyclopediaEntry" PROFILE="urn:library-of-congress:mets:profiles:ndnp:encyclopediaEntry:v1.1" LABEL="The National Forum Scope Note" xmlns:mods="http://www.loc.gov/mods/v3" xmlns="http://www.loc.gov/METS/" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">   <!–METS HEADER–> <metshdr CREATEDATE="2007-01-10T09:00:00" ><!–CREATEDATE should be populated with creation date of the record. RECORDSTATUS should only be set [...]