public string GetFlatString(bool pretty)
        {
            if (string.IsNullOrEmpty(NamespaceUri))
            {
                return(LocalName.z(pretty));
            }

            return(String.Format("{0}:{1}", NamespaceUri, LocalName.z(pretty)));
        }
Example #2
0
 /// <summary>
 /// Writes the attributes of a XukAble element
 /// </summary>
 /// <param name="destination">The destination <see cref="XmlWriter"/></param>
 /// <param name="baseUri">
 /// The base <see cref="Uri"/> used to make written <see cref="Uri"/>s relative,
 /// if <c>null</c> absolute <see cref="Uri"/>s are written
 /// </param>
 protected virtual void XukOutAttributes(XmlWriter destination, Uri baseUri)
 {
     if (!string.IsNullOrEmpty(Uid))
     {
         destination.WriteAttributeString(Uid_NAME.z(PrettyFormat), Uid);
     }
 }