from bs4 import BeautifulSoup as BS xmldata = open('test.xml').read() bs = BS(xmldata, 'xml') print bs
Выводит только
<?xml version="1.0" encoding="utf-8"?>
Понять не могу почему. Xml вроде валидный.
from bs4 import BeautifulSoup as BS xmldata = open('test.xml').read() bs = BS(xmldata, 'xml') print bs
<?xml version="1.0" encoding="utf-8"?>