mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Ignore whitespace when reading serialized XML objects.
This was previously effectively being done by XmlDocument in the multiple passes through the XML. This change tells XmlReader to ignore whitespace. This also means changing arguments to use XmlReader instead of XmlTextReader (a descendent of XmlReader) directly. XmlReader.Create() has been the recommend way to create XML readers since .NET 2.0 as per MS SDK and is the only way to specific ignore whitespace settings.
This commit is contained in:
@@ -44,11 +44,11 @@ namespace OpenSim.Framework.Serialization.External
|
||||
{
|
||||
// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
private static Dictionary<string, Action<LandData, XmlTextReader>> m_ldProcessors
|
||||
= new Dictionary<string, Action<LandData, XmlTextReader>>();
|
||||
private static Dictionary<string, Action<LandData, XmlReader>> m_ldProcessors
|
||||
= new Dictionary<string, Action<LandData, XmlReader>>();
|
||||
|
||||
private static Dictionary<string, Action<LandAccessEntry, XmlTextReader>> m_laeProcessors
|
||||
= new Dictionary<string, Action<LandAccessEntry, XmlTextReader>>();
|
||||
private static Dictionary<string, Action<LandAccessEntry, XmlReader>> m_laeProcessors
|
||||
= new Dictionary<string, Action<LandAccessEntry, XmlReader>>();
|
||||
|
||||
static LandDataSerializer()
|
||||
{
|
||||
@@ -134,7 +134,7 @@ namespace OpenSim.Framework.Serialization.External
|
||||
"AccessList", (lae, xtr) => lae.Flags = (AccessList)Convert.ToUInt32(xtr.ReadElementString("AccessList")));
|
||||
}
|
||||
|
||||
public static void ProcessParcelAccessList(LandData ld, XmlTextReader xtr)
|
||||
public static void ProcessParcelAccessList(LandData ld, XmlReader xtr)
|
||||
{
|
||||
if (!xtr.IsEmptyElement)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user