2
I have a String, which contains an XML with a structure similar to this:
<TAG0>
<TAG1>
<TAG2>valor1</TAG2>
</TAG1>
<TAG1>
<TAG2>valor2</TAG2>
</TAG1>
</TAG0>
In the case I have Tags with the same name, which repeat in the XML body, as a sale, which contains several items. String with XML is running text without spaces. Ex.:
String VARIAVEL = "<TAG0><TAG1><TAG2>valor1</TAG2></TAG1><TAG1><TAG2>valor2</TAG2></TAG1></TAG0>"
What I have to do, as follows in this example, is to redeem the values of the "TAG2" tags, knowing that I can have N tags like "TAG1". The real case is to rescue all Cfops from one Nfe items.
See if this link helps you with anything: http://www.guj.com.br/java/169353-ler-conteudo-xml-contained-em-uma-string
– Paulo Roberto