The W3C has rolled all their validators (HTML, XML, CSS) into one: Unicorn.
Debugging BIRT: How do I enable logging for OSGi/Equinox?
12. July, 2010If you ever tried to enable debugging for OSGi (Equinox) because starting the BIRT engine fails for mysterious reasons, you will have noticed that BIRT removes all osgi.* options from the System.properties before it launches (see ).
Instead, it expects these options in config.ini:
# Specify the file with the debug options. See the .options file in the org.eclipse.osgi*.jar for examples osgi.debug=/path/to/file/with/debug.options # Change the classloader. Possible values are: "app", "fwk", "boot" (default) # app: Use the current SystemClassLoader # boot: Use the boot classloader # fwk: Use the classloader which was used to load OSGi. #osgi.parentClassloader=fwk
Use fwk if you see errors because of missing XML parser classes. The Java runtime has a private static field which contains the XML parser factory and if you touch any XML code before you start OSGi, then that field will be set and OSGi will be forced to use this XML parser — only the default boot classloader can’t see the parser. Bummer.
Update to DecentXML
30. July, 2008I’ve updated my XML parser. The tests now cover 97.7% of the code (well, actually 100% of the code which can be executed; there are a couple of exceptions which will never be thrown but I still have to handle them) and there are classes to read XML from InputStream and Reader sources (including encoding detection).
The XMLInputStreamReader class can be used standalone, if you ever want to read an XML file with the correct encoding.
You can download the sources and report issues in the new Google Code project I’ve created.
A Decent XML Parser
29. July, 2008Since there isn’t one, I’ve started writing one myself. Main features:
- Allows 100% round-tripping, even for weird whitespace between attributes in elements
- Suitable for building editors and filters which want to preserve the original file layout
- Error messages have line and column information
- Easy to reuse
- XML 1.0 compatible
You can download the latest sources here as a Maven 2 project.
Creating a Visual XML Editor
23. April, 2008A long time ago, I’ve complained about XML editors and that there is no decent XML editor out there which you can use as the basis for a nice visual editor for your custom XML format.
It seems my prayers have been heard.
Posted by digulla 
