Exemplo n.º 1
0
        private void onAttribute(Attribute_ attribute)
        {
            sb.Append(" ");
            string nspace = this.namespaces.getPrefixViaUri(attribute.getNamespace());

            if (nspace == null)
            {
                nspace = attribute.getNamespace();
            }
            if (nspace != null && !nspace.Equals(string.Empty))
            {
                sb.Append(nspace).Append(':');
            }
            string escapedFinalValue = XmlEscaper.escapeXml10(attribute.getValue());

            sb.Append(attribute.getName()).Append('=').Append('"').Append(escapedFinalValue).Append('"');
        }