How to change the prefix and name of an attribute in an XML tag in an NFS-e?

1
Hello, I am a beginner in NFS-e development and I am not able to change the prefix and attribute name below, I put it in the code so that it was xsi, however regardless of what I put it, it generates xml with d1p1. How to replace this d1p1 with xsi in its two occurrences?

<?xml version="1.0" encoding="UTF-8"?>
<EnviarLoteRpsEnvio xmlns="http://isscuritiba.curitiba.pr.gov.br/iss/nfse.xsd" xmlns:d1p1="http://www.w3.org/2001/XMLSchema-instance" d1p1:schemaLocation="http://isscuritiba.curitiba.pr.gov.br/iss/nfse.xsd">
<LoteRps Id="lote6014" versao="2.0">
      <NumeroLote>6014</NumeroLote>
      <Cnpj>0000000000</Cnpj>
      <InscricaoMunicipal>55114444</InscricaoMunicipal>
      <QuantidadeRps>1</QuantidadeRps>
      <ListaRps>
         <Rps>

Below the code used to generate the attributes in C #:

using System;
using System.Xml;
using System.Xml.Serialization;

namespace NFSE.Net.Layouts.CuritibaPr {
[System.Xml.Serialization.XmlRoot("EnviarLoteRpsEnvio", Namespace = "http://isscuritiba.curitiba.pr.gov.br/iss/nfse.xsd")]

public class EnviarLoteRpsEnvio
{
    public XmlSerializerNamespaces GetAdditionalNamespaces()
    {
        XmlSerializerNamespaces names = new XmlSerializerNamespaces();
        names.Add("", "http://www.w3.org/2001/XMLSchema-instance");
        names.Add("xsi", "http://isscuritiba.curitiba.pr.gov.br/iss/nfse.xsd");
        return names;
    }

       [XmlAttribute(AttributeName = "schemaLocation", Namespace = "http://www.w3.org/2001/XMLSchema-instance")]
       public string XSDSchemaLocation
       {
           get
           {
               return "http://isscuritiba.curitiba.pr.gov.br/iss/nfse.xsd";
           }     
           set
           { }
       }

Thank you.

    
asked by anonymous 12.12.2017 / 13:48

0 answers