static private FromXmlNCName ( string ncName ) : string | ||
ncName | string | |
return | string |
protected void WriteElementQualifiedName(string localName, string ns, XmlQualifiedName value, XmlQualifiedName xsiType) { localName = XmlCustomFormatter.FromXmlNCName(localName); WriteStartElement(localName, ns); if (xsiType != null) { WriteXsiType(xsiType.Name, xsiType.Namespace); } Writer.WriteString(FromXmlQualifiedName(value)); WriteEndElement(); }
protected void WriteElementString(string localName, string ns, string value, XmlQualifiedName xsiType) { if (value == null) { return; } if (xsiType != null) { localName = XmlCustomFormatter.FromXmlNCName(localName); WriteStartElement(localName, ns); WriteXsiType(xsiType.Name, xsiType.Namespace); Writer.WriteString(value); WriteEndElement(); } else { Writer.WriteElementString(localName, ns, value); } }
/// <include file='doc\XmlSerializationWriter.uex' path='docs/doc[@for="XmlSerializationWriter.FromXmlNCName"]/*' /> protected static string FromXmlNCName(string ncName) { return(XmlCustomFormatter.FromXmlNCName(ncName)); }