1
Good night
I need an xml collaboration, I have little knowledge for R in this
I have the following xml structure
To help me, please copy to a txt and save in xml format to use
<arquivoposicao_4_01>
<fundo>
<titpublico>
<dtemissao>20080509</dtemissao>
<dtoperacao>20110614</dtoperacao>
<dtvencimento>20140907</dtvencimento>
<qtdisponivel>0</qtdisponivel>
<qtgarantia>114</qtgarantia>
<depgar>5</depgar>
<caracteristica>N</caracteristica>
<percprovcred>0</percprovcred>
<classeoperacao>C</classeoperacao>
<idinternoativo>227549 </idinternoativo>
<nivelrsc></nivelrsc>
</titpublico>
</fundo>
</arquivoposicao_4_01>
When saving it, I import the data
dados<-xmlParse(file = choose.files())
And I try to turn it into data.frame, but the result is not as expected
dados2<-xmlToDataFrame(dados)
I would like to result in a data frame, where each line would be respective to each xml item, but the result is that all together , becoming impossible to separate
thank you in advance
thanks , helped a lot , I will try to give scale to the complete file
– Henrique Faria de Oliveira
@Henrique Faria de Oliveira, I have a problem similar to yours, but I’m not getting an answer. https://answall.com/questions/426692/transformar-xml-em-dataframe
– Bruno Avila