Comments (4)
Looks like an issue with the syntax of the XML from the Chamber of Deputies… Have you seen something similar, @Irio?
from serenata-toolbox.
Probably a syntax issue with one of the XML files:
$ xmllint data/AnosAnteriores.xml
data/AnosAnteriores.xml:1: parser error : StartTag: invalid element name
</numParcela><txtPassageiro/><txtTrecho/><numLote>0</numLote><numRessarcimento>0
^
data/AnosAnteriores.xml:2: parser error : Premature end of data in tag numRessarcimento line 1
^
data/AnosAnteriores.xml:2: parser error : Premature end of data in tag DESPESA line 1
^
data/AnosAnteriores.xml:2: parser error : Premature end of data in tag DESPESAS line 1
^
data/AnosAnteriores.xml:2: parser error : Premature end of data in tag orgao line 1
^
The xmllint
(available in macOS and Linux AFAIK) can fix it for us, maybe we will miss one or other record:
$ mv data/AnosAnteriores.xml data/AnosAnteriores.xml.bkp
$ xmllint data/AnosAnteriores.xml.bkp --recover --output data/AnosAnteriores.xml
However I'm not sure if this is a proper solution, I mean, to calling xmllint
from Python in case of error. Any ideas?
from serenata-toolbox.
More clues that the file is actually broken: the end of the file is in the middle of a tag…
https://nbviewer.jupyter.org/gist/cuducos/50df395ac13fbf7159282cb6f6c109c3
from serenata-toolbox.
I'm closing this since #22 fixed the parsing error =)
from serenata-toolbox.
Related Issues (20)
- [Question] New contributors HOT 4
- Access denied when executing example on README
- Failing to import "log" HOT 2
- Rename .xz to .csv.xz HOT 3
- Cannot download the datasets HOT 1
- Problem when downloading datasets from our servers HOT 3
- Is there a data dictionary for the chamber of deputies reimbursements? HOT 3
- Error trying to download 2016-08-08-datasets-format.html
- function test_download_no_file() duplicated HOT 1
- Dataset checksum and avoid download duplicate HOT 3
- Add checksum file of datasets to the bucket HOT 4
- Process datasets with Dask
- serenata-toolbox cli HOT 1
- README.rst broken links related to generating datasets HOT 5
- Config file for downloading datasets HOT 1
- Cannot use ChamberDataset() to download data HOT 7
- Error: SSL: CERTIFICATE_VERIFY_FAILED HOT 2
- Where do the datasets download? HOT 4
- Run tox tests in TravicCI HOT 3
- We need to catch an HTTP error early in new years HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serenata-toolbox.