[ https://issues.apache.org/jira/browse/LOG4NET-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Bodewig resolved LOG4NET-209. ------------------------------------ Resolution: Not A Problem Fix Version/s: (was: 1.2.11) XmlLayoutBase sets XmlTextWriter.Namespace to false and thus disables all namespace handling. In fact using one of the other overloads of WriteStartElement will result in an exception. Unless you invoke FormatXml directly the XmlWriter will always be the one configured in XmlLayoutBase.Format so the problem of an XmlWriter that wouldn't allow the localname to contain a colon should never happen. > XmlLayout.FormatXml calls wrong overload of XmlWriter.WriteStartElement > ----------------------------------------------------------------------- > > Key: LOG4NET-209 > URL: https://issues.apache.org/jira/browse/LOG4NET-209 > Project: Log4net > Issue Type: Bug > Components: Other > Affects Versions: 1.2.10 > Environment: .NET 3.5 SP1 > Reporter: Matthew Gabeler-Lee > > FormatXml calls WriteStartElement using prefixed element names (e.g. > "log4net:event"), but it calls the overload of WriteStartElement that expects > a local name. Thus, if it writes to an xml writer that actually checks such > things, it crashes. Instead, it should call the overload that separates the > prefix from the local name. E.g.: writer.WriteStartElement(this.m_prefix, > this.m_elmEvent, null). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira