FromXmlNCName() static private method

static private FromXmlNCName ( string ncName ) : string
ncName string
return string
Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
 /// <include file='doc\XmlSerializationWriter.uex' path='docs/doc[@for="XmlSerializationWriter.FromXmlNCName"]/*' />
 protected static string FromXmlNCName(string ncName)
 {
     return(XmlCustomFormatter.FromXmlNCName(ncName));
 }