public override IXmlNode AppendChild(IXmlNode newChild) { XDeclarationWrapper wrapper = newChild as XDeclarationWrapper; if (wrapper != null) { this.Document.Declaration = wrapper.Declaration; return(wrapper); } return(base.AppendChild(newChild)); }
public override IXmlNode AppendChild(IXmlNode newChild) { XDeclarationWrapper xDeclarationWrapper = newChild as XDeclarationWrapper; if (xDeclarationWrapper == null) { return(base.AppendChild(newChild)); } this.Document.Declaration = xDeclarationWrapper.Declaration; return(xDeclarationWrapper); }
public override IXmlNode AppendChild(IXmlNode newChild) { XDeclarationWrapper declarationWrapper = newChild as XDeclarationWrapper; if (declarationWrapper != null) { Document.Declaration = declarationWrapper.Declaration; return(declarationWrapper); } else { return(base.AppendChild(newChild)); } }