protected void WriteReferencingElement(string n, string ns, object o, bool isNullable) { if (o == null) { if (isNullable) WriteNullTagEncoded(n, ns); return; } WriteStartElement(n, ns, null, true); if (_soap12) _w.WriteAttributeString("ref", Soap12.Encoding, GetId(o, true)); else _w.WriteAttributeString("href", "#" + GetId(o, true)); _w.WriteEndElement(); }