How ignore "Doctype" when I import an XML?

amorcastuoamorcastuo Member Posts: 5
This is my xml file:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ResultadosLoterias (View Source for full doctype...)>
<ResultadosLoterias>
- <Juego>
<IdJuego>1</IdJuego>
<NombreJuego>La Primitiva</NombreJuego>
<IdSorteo>5986</IdSorteo>
<Fecha>20060708</Fecha>
<Titular>Sorteo de La Primitiva correspondiente al 08-07-2006. Combinación ganadora: 15, 29, 32, 34, 35, 40; Complementario: 42; Reintegro: 3.</Titular>
- <Resultados>
<Resultado Orden="1" Valor="15" Significado="Numero" />
<Resultado Orden="2" Valor="29" Significado="Numero" />
</Resultados>
- <Premios>
<Premio Categoria="1" ImporteEuros="0.00" ImportePesetas="0" Acertantes="0" />
<Premio Categoria="2" ImporteEuros="108967.57" ImportePesetas="18130678" Acertantes="4" />
<Premio Categoria="3" ImporteEuros="4564.09" ImportePesetas="759401" Acertantes="191" />
</Premios>
</Juego>
</resultadosLoterias>

My codeunit doesn't work because of this line: <!DOCTYPE ResultadosLoterias (View Source for full doctype...)>

I made the code according to the example of "roman's(XIS 1.0i (Simple) -XML Import Sample" which I found in this forum but only runs when I delete the doctype line...
Could somebody help me??

Thanks

Comments

Sign In or Register to comment.