Preciso escrever um xml com a seguinte estrutura:
<?xml version="1.0" encoding="UTF-8"?>
<ns1:ReqConsultaLote xsi:schemaLocation="http://localhost:8080/WsNFe2/lote http://localhost:8080/WsNFe2/xsd/ReqConsultaLote.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tipos="http://localhost:8080/WsNFe2/tp" xmlns:ns1="http://localhost:8080/WsNFe2/lote">
<Cabecalho>
<CodCidade>1111</CodCidade>
<CPFCNPJRemetente>11111111111</CPFCNPJRemetente>
<Versao>1</Versao>
<NumeroLote>11111</NumeroLote>
</Cabecalho>
</ns1:ReqConsultaLote>
Mas o resultado que eu consigo é o seguinte:
<?xml version="1.0" encoding="UTF-8"?>
<ns1:ReqConsultaLote xmlns:ns1="http://localhost:8080/WsNFe2/lote" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tipos="http://localhost:8080/WsNFe2/tp" xsi:schemaLocation="http://localhost:8080/WsNFe2/lote http://localhost:8080/WsNFe2/xsd/ReqConsultaLote.xsd">
<Cabecalho>
<CodCidade>1111</CodCidade>
<CPFCNPJRemetente>11111111111</CPFCNPJRemetente>
<Versao>1</Versao>
<NumeroLote>11111</NumeroLote>
</Cabecalho>
</ns1:ReqConsultaLote>
Como fazer isso?