minor: In HGAssetMapper, don't complain on seeing an XmlDeclaration as we know that we not using those in transformation.

Relates to http://opensimulator.org/mantis/view.php?id=7447
inv-download
Justin Clark-Casey (justincc) 2015-02-25 21:42:07 +00:00
parent a03d893f2c
commit 5fa651c529
1 changed files with 5 additions and 0 deletions

View File

@ -318,6 +318,11 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
writer.WriteString(reader.Value); writer.WriteString(reader.Value);
break; break;
case XmlNodeType.XmlDeclaration:
// For various reasons, not all serializations have xml declarations (or consistent ones)
// and as it's embedded inside a byte stream we don't need it anyway, so ignore.
break;
default: default:
m_log.WarnFormat( m_log.WarnFormat(
"[HG ASSET MAPPER]: Unrecognized node {0} in asset XML transform in {1}", "[HG ASSET MAPPER]: Unrecognized node {0} in asset XML transform in {1}",