Sides to accompany Presentation at Open Source Panel, MCN 2010, October 28th.
Drawing examples from web projects at the Victoria and Albert Museum, I will identify free and open source technologies that have enabled us to deliver value to colleagues and visitors alike. Furthermore, we will see how these technologies - when combined with open standards - can provide a powerful toolkit for working with legacy and proprietary systems. This allows "just-in-time" features to be added to existing systems outside costly or time-consuming upgrade cycles. Overall, I will share some approaches that could be useful for other institutions wishing to engage technical staff and save on licensing software.
19. http://wiki.xml3k.org/Amara2/Tutorial
from amara import bindery
MONTY_XML = """<quotes>
<quote skit="1">This parrot is dead</quote>
<quote skit="2">What do you mean "bleh"</quote>
<quote skit="2">I don't like spam</quote>
<quote skit="3">But I was looking for argument</quote>
</quotes>"""
doc = bindery.parse(MONTY_XML)
q1 = doc.quotes.quote # or doc.quotes.quote[0]
print q1.skit
print q1.xml_attributes[(None, u'skit')] # XPath works too: q1.xml_select(u'@skit')
for q in doc.quotes.quote: # The loop will pick up both q elements
print unicode(q) # Just the child char data
19
23. http://php.net/
# As recently as 2008…
$query = "DELETE FROM va_table WHERE id = ".$_POST['va_id']." LIMIT 1";
$result = mysql_query($query) or die(mysql_error());
23