Estou precisando muito ajuda de vocês.
É o seguinte estou criando uma rotina para geração do XML para emissão de nota fiscal eletrônica e oue esta pegando é que não estou conseguindo criar uma regra para os fechamentos das TAGS na geração do XML
Preciso gerar um XML igual a este:
<infNFe versao="2.0">
<tag2>
<tagB>2010-11-17</tagB>
</tag2>
<tag3/>
<teste>
<cESPECIE>2010-11-17</cESPECIE>
<nomeImpressora>2010-11-17</nomeImpressora>
<cMunFG>2010-11-17</cMunFG>
</teste>
</infNFe>
SELECT xmlElement("infNFe",xmlAttributes('2.0' as "versao"),
xmlelement
("tag1",null,
xmlForest (null as "tagA")
as "sumir"
),
xmlelement
("tag2",null,
xmlForest (SYSDATE as "tagB")
as "normal"
),
xmlelement
("tag3",null,
xmlForest (null as "tagC")
as "empy"
),
xmlForest
(
SYSDATE as "cESPECIE",
SYSDATE as "nomeImpressora",
SYSDATE as "cMunFG"
) AS "teste"
)"infNFe"--/
FROM DUAL a
E estou obtendo e sguinte resultado:
<infNFe versao="2.0">
<tag1/>
<tag2>
<tagB>2010-11-17</tagB>
</tag2>
<tag3/>
<cESPECIE>2010-11-17</cESPECIE>
<nomeImpressora>2010-11-17</nomeImpressora>
<cMunFG>2010-11-17</cMunFG>
</infNFe>



