Per Melin wrote: > The solution is obvious; use 're' to parse XML. > > -module(regexml). > > -export([parse/1]). > > -define(XML_RE, "[^<]+|<(?:!(?:--(?:[^-]*-(?:[^-][^-]*-)*->?)?" .... Brilliant, XML hater ??? /klacke