read data from XML file
Hello everyone. I am making an addon to read files that are passed in an XML file. XML structure is very simple

Archivo XML

The where the error arises is this:
# -*- coding: utf-8 -*-
import sys
import xbmcgui
import xbmcplugin
import xbmc
import os
from urlparse import parse_qsl
from io import open
from bs4 import BeautifulSoup as bs

__url__ = sys.argv[0];
addon_handle  =  int ( sys . argv [ 1 ])

contenido =[]
archivo = open("D:\\Kodi_Listado_Completo.xml", mode="r", encoding="utf-8-sig")
lineas= archivo.readlines()
for i in range(len(lineas)):
    lineas.replace("\\ufeff", "")
contenido = "".join(lineas_modificadas)
documento = bs(contenido, "xml")
del lineas, lineas_modificadas, contenido

The addon.xml is this:[/i]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="" name="Lacibis" version="1.0.0" provider-name="julius">
    <import addon="xbmc.python" version="2.26.0"/>
    <import addon="" version="6.7.0"/>
    <import addon="script.module.beautifulsoup4" version="4.6.2"/>    
  <extension point="xbmc.python.pluginsource" library="">
  <extension point="xbmc.addon.metadata">
    <description>Addon de Cine</description>

[i]The kodi.log file is as follows[/i]

From what I see it is a failure because KODI does not have a parse installed. I have tried to do the same with ElementTree.ettree but it doesn't give problems with script.module.abi dependency too.
I am a novice in this I would appreciate help. I have searched and tried different options but it doesn't work. Thank you

Messages In This Thread
read data from XML file - by Gringopel - 2020-05-05, 22:01
RE: read data from XML file - by Roman_V_M - 2020-06-01, 06:50
RE: read data from XML file - by zachmorris - 2020-07-08, 03:43
RE: read data from XML file - by Marie Black - 2020-12-03, 02:27
RE: read data from XML file - by Marie Black - 2020-12-07, 02:14

Logout Mark Read Team Forum Stats Members Help
read data from XML file0
This forum uses Lukasz Tkacz MyBB addons.