Stuart Breckenridge

How I Validate XML Files on a Mac

There’s no other way to state this: validating XML files manually is a massive pain in the ass. Luckily, you can use xmllint to validate an XML file against an XSD. This is what I used when coding FATCA Metadata Creator to ensure that the generated XML file was valid.

The process is simple, just run this command in terminal:

xmllint --noout --schema ~/PATH/Schema.xsd file.xml

If the file validates successfully, you’ll see a message that reads file.xml validates. Otherwise, if the file doesn’t validate, you’ll see an error message telling you where the failure occurred:

Schemas validity error : Element '{urn:fatca:idessenderfilemetadata}FileRevisionInd': 'falsey' is not a valid value of the atomic type 'xs:boolean'.
file.xml fails to validate

— Supported by —

Limited Edition Apple Watch for Chinese New Year

I don’t recall ever seeing Apple offer limited edition products for an annual celebration in the UK. It’s a bit different in Asia. This year we have a limited edition Apple Watch Sport for Chinese New Year (available until February 22nd).

I’m left wondering what other annual celebrations Apple could cash in on?

Photography on 500px

I’ve started selling some of my better photos1 on 500px. I’ve never sold photos before, so this is something new. If you see something you like, feel free to license it!

Singapore at Night by Stuart Breckenridge on

  1. I’m going through a long exposure phase at the moment. ↩︎

Netherlands See Sense on Encryption

“The country’s minister of security and justice Ard van der Steur wrote that the Dutch executive cabinet endorsed “the importance of strong encryption for Internet security to support the protection of privacy for citizens, companies, the government, and the entire Dutch economy.

Therefore, the government believes that it is currently not desirable to take legal measures against the development, availability and use of encryption within the Netherlands.”

Abhimanyu Ghoshal

I’m reminded of The Short List episode in The West Wing:

“In the 20’s and 30’s it was the role of government, 50s and 60s it was civil rights, the next two decades are going to be privacy. I’m talking about the Internet, I’m talking about cell phones, I’m talking about health records. Who’s gay and who’s not.”

Sam Seaborn

That was in 1999. Way ahead of its time.

The Speed of Touch ID

“The lockscreen is now an active space, a play space, a space to invoke cameras, respond to messages, talk to your pal Siri. It is a space in which you’re meant to linger, to fall in love, to capture. In fact, it’s no longer a lockscreen but rather a comfortable veranda between the world and your home.”

Craig Mod

The speed with which Touch ID scans your finger on the iPhone 6s is incredibly fast. So fast, that unless you hold your phone in an obtuse way and turn on the lock screen using a non-Touch ID finger or the power button, you’ll miss the lock screen - and its functionality - entirely.

In short, when you just want to see what time it is and you hold your iPhone like a regular person, you’re out of luck.