Fixed different behavior in XML processing.