Comments (2)
I get the same error when try to parse a large file (well not so long as @statzhero file) with many tags. The format of the file is like this:
<entry>
<id>https://contrataciondelestado.es/sindicacion/datosAbiertosMenores/6960158</id>
<link href="https://contrataciondelestado.es/wps/poc?uri=deeplink:detalle_licitacion&idEvl=LYJ5XzWBx80SugstABGr5A%3D%3D"/>
<summary type="text">Id licitación: 2021/19; Órgano de Contratación: Gerencia de la Fundación para el Fomento de la Investigación Sanitaria y Biomédica de la Comunitat Valenciana (FISABIO); Importe: 100 EUR; Estado: RES</summary>
<title>Servicio de secuenciación Sanger de placa de 96 pocillos</title>
<updated>2021-01-31T14:07:34.149+01:00</updated>
<cac-place-ext:ContractFolderStatus>
<cbc:ContractFolderID>2021/19</cbc:ContractFolderID>
<cbc-place-ext:ContractFolderStatusCode languageID="es" listURI="https://contrataciondelestado.es/codice/cl/2.04/SyndicationContractFolderStatusCode-2.04.gc">RES</cbc-place-ext:ContractFolderStatusCode>
<cac-place-ext:LocatedContractingParty>
<cbc:ContractingPartyTypeCode listURI="http://contrataciondelestado.es/codice/cl/1.04/ContractingAuthorityCode-1.04.gc">5</cbc:ContractingPartyTypeCode>
<cac:Party>
<cbc:WebsiteURI>http://www.fisabio.es</cbc:WebsiteURI>
<cac:PartyIdentification>
<cbc:ID schemeName="DIR3">A10018363</cbc:ID>
</cac:PartyIdentification>
<cac:PartyIdentification>
<cbc:ID schemeName="NIF">G98073760</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>Gerencia de la Fundación para el Fomento de la Investigación Sanitaria y Biomédica de la Comunitat Valenciana (FISABIO)</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:CityName>Valencia</cbc:CityName>
<cbc:PostalZone>46020</cbc:PostalZone>
<cac:AddressLine>
<cbc:Line>Avda. de Cataluña, 21 (Área Legal 2ª Planta)</cbc:Line>
</cac:AddressLine>
<cac:Country>
<cbc:IdentificationCode listURI="http://docs.oasis-open.org/ubl/os-ubl-2.0/cl/gc/default/CountryIdentificationCode-2.0.gc">ES</cbc:IdentificationCode>
<cbc:Name>España</cbc:Name>
</cac:Country>
</cac:PostalAddress>
<cac:Contact>
<cbc:Name>Gerencia de la Fundación para el Fomento de la Investigación Sanitaria y Biomédica de la Comunitat Valenciana (FISABIO)</cbc:Name>
<cbc:Telephone>961925700</cbc:Telephone>
<cbc:ElectronicMail>[email protected]</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac-place-ext:LocatedContractingParty>
<cac:ProcurementProject>
<cbc:Name>Servicio de secuenciación Sanger de placa de 96 pocillos</cbc:Name>
<cbc:TypeCode listURI="http://contrataciondelestado.es/codice/cl/2.08/ContractCode-2.08.gc">2</cbc:TypeCode>
<cbc:SubTypeCode listURI="http://contrataciondelestado.es/codice/cl/1.04/ServiceContractCode-1.04.gc">27</cbc:SubTypeCode>
<cac:BudgetAmount>
<cbc:TotalAmount currencyID="EUR">121</cbc:TotalAmount>
<cbc:TaxExclusiveAmount currencyID="EUR">100</cbc:TaxExclusiveAmount>
</cac:BudgetAmount>
<cac:RequiredCommodityClassification>
<cbc:ItemClassificationCode listURI="http://contrataciondelestado.es/codice/cl/1.04/CPV2007-1.04.gc">73110000</cbc:ItemClassificationCode>
</cac:RequiredCommodityClassification>
<cac:RealizedLocation>
<cbc:CountrySubentity>Valencia / València</cbc:CountrySubentity>
<cbc:CountrySubentityCode listURI="http://contrataciondelestado.es/codice/cl/2.06/NUTS-2016.gc">ES523</cbc:CountrySubentityCode>
<cac:Address>
<cac:Country>
<cbc:IdentificationCode listURI="http://docs.oasis-open.org/ubl/os-ubl-2.0/cl/gc/default/CountryIdentificationCode-2.0.gc">ES</cbc:IdentificationCode>
<cbc:Name>España</cbc:Name>
</cac:Country>
</cac:Address>
</cac:RealizedLocation>
<cac:PlannedPeriod>
<cbc:DurationMeasure unitCode="DAY">1</cbc:DurationMeasure>
</cac:PlannedPeriod>
</cac:ProcurementProject>
<cac:TenderResult>
<cbc:ResultCode listURI="http://contrataciondelestado.es/codice/cl/2.02/TenderResultCode-2.02.gc">8</cbc:ResultCode>
<cbc:Description>Mejor precio</cbc:Description>
<cbc:AwardDate>2021-01-08</cbc:AwardDate>
<cbc:ReceivedTenderQuantity>1</cbc:ReceivedTenderQuantity>
<cac:WinningParty>
<cac:PartyIdentification>
<cbc:ID schemeName="NIF">Q4618001D</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>UNIVERSIDAD DE VALENCIA ESTUDI GENERAL</cbc:Name>
</cac:PartyName>
</cac:WinningParty>
<cac:AwardedTenderedProject>
<cac:LegalMonetaryTotal>
<cbc:TaxExclusiveAmount currencyID="EUR">100</cbc:TaxExclusiveAmount>
<cbc:PayableAmount currencyID="EUR">121</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
</cac:AwardedTenderedProject>
</cac:TenderResult>
<cac:TenderingProcess>
<cbc:ProcedureCode listURI="https://contrataciondelestado.es/codice/cl/2.07/SyndicationTenderingProcessCode-2.07.gc">6</cbc:ProcedureCode>
<cbc:UrgencyCode listURI="http://contrataciondelestado.es/codice/cl/1.04/DiligenceTypeCode-1.04.gc">1</cbc:UrgencyCode>
</cac:TenderingProcess>
<cac-place-ext:ValidNoticeInfo>
<cbc-place-ext:NoticeTypeCode listURI="http://contrataciondelestado.es/codice/cl/2.04/TenderingNoticeTypeCode-2.04.gc">DOC_CAN_ADJ</cbc-place-ext:NoticeTypeCode>
<cac-place-ext:AdditionalPublicationStatus>
<cbc-place-ext:PublicationMediaName>Perfil del Contratante</cbc-place-ext:PublicationMediaName>
<cac-place-ext:AdditionalPublicationDocumentReference>
<cbc:IssueDate>2021-01-31</cbc:IssueDate>
</cac-place-ext:AdditionalPublicationDocumentReference>
</cac-place-ext:AdditionalPublicationStatus>
</cac-place-ext:ValidNoticeInfo>
</cac-place-ext:ContractFolderStatus>
</entry>
Any help would be appreciated. Thanks for this package!
from xmlconvert.
I am sorry for the late fix but I was quite busy recently.
The problem seems to be the namespaces in the XML data. xml2
's xml_find_all()
function fails to find any tags in the XML data if namespaces are present. So I have added a new logical argument strip.ns
tothe xml_to_df()
function that allows to remove namespaces from the XML data after parsing.
The new code is available in this repo and has also been submitted to CRAN today (new package version 0.1.2). Please be aware that using strip.ns
may increase the time needed for parsing significantly (that may be relevant especially with huge files like statzhero's SEC data with its more than 190 MB).
from xmlconvert.
Related Issues (3)
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 xmlconvert.