I’ve been playing around with code generation tools for XML parsing. I used the DTD for the Technorati API as an example. I just ran the DTD through OxygenXML which has tools to create schemas from DTDs. I then updated it (the DTD seems out of date with the current API) and changed some of the default output to be a bit more accurate. In case you’re into similar tools, or want to use the Technorati API without writing all the custom parsing code, here’s the schema for you to use.
The XML Schema works quite well with the XMLBeans tools from the Apache project, which is what I like right now.
Update: forgot to mention that it doesn’t support the AttentionQuery API yet.





Leave a Reply