del.icio.us
Me
Archives
Meta
Tag Archives: xml
To XHTML or not to XHTML?
Today, we had a conversation about HTML 4 vs XHTML 1.0. For me, the matter was neatly settled they very first time I saw an XML system produce XHTML like this: <p>An article with an <em/> empty emphasis tag.</p> Perfectly … Continue reading
SAX EntityResolver
I was trying to resolve entities (&weirdChar;) in an XML file. Easy enough, use a validating parser. But here’s the tricky bit: get the entity definitions from the classpath. This should still be easy, as SAX provides an EntityResolver. Unfortunately, … Continue reading
Writing XML in Java
Last night, I was looking at generating SAMS XML from Java objects. It made me realise two things: Java sucks badly at creating XML (by default). I should really be looking at XML Binding. I’m interested in point 1. I’ve … Continue reading
Dynamic JUnit
Recently, I wanted to do something slightly unusual with JUnit. I’m working on a cocoon project, so there are squillions of little XML files floating around. These need to be all well-formed. So I want a test that parses each … Continue reading
Cocoon
Surprising as it may seem if you only read this blog, I don’t do much Perl or Ruby or Rails. I try to in my spare time, but it’s not what I’m doing at $WORK. That’s mostly concerned with pushing … Continue reading
The year of XQuery?
Apparently, it’s the year of xquery. I’ve just started a large project at $WORK, of which XQuery is a fundamental piece. And I have to say I’m not so sure. From what I’ve seen so far, there are good and … Continue reading
XML::Genx Plans
I was talking to Mark Fowler yesterday and XML::Genx came up. He had a couple of good points: It’s not absolutely clear in the documentation that any valid Perl string will work correctly (be it UTF-8 encoded or not). I … Continue reading
XML::Filter::Normalize 0.1
A couple of days ago, I released
new XML::Genx
XML::Genx 0.19 is now out. Changes include: Allow namespace objects to be passed in to StartElementLiteral() and AddAttributeLiteral(). This makes it much easier to put things into the default namespace. Add a missing “static” declaration to some XS helper functions. … Continue reading
XML::Genx
Aristotle Pagaltzis has mentioned XML::Genx. Yay, it needs all the publicity that it can get. He highlighted some issues in XML::Genx::SAXWriter, which I need to address, although getting some consensus from the list first would be good. He also mentions … Continue reading