Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a paramter to read a slice of the xml (row range or number of rows) #362

Closed
abalter opened this issue Apr 26, 2022 · 2 comments
Closed

Comments

@abalter
Copy link

abalter commented Apr 26, 2022

I have a huge XML file. Can't read it all in at once.

Brief description of the problem

This hangs:

x = read_xml("file.xml")
l = as_list(x)

Feature request

x = read_xml("file.xml", n_records=1000)
y = read_xml("file.xml", slice=c(1000, 2034))
@hadley
Copy link
Member

hadley commented Oct 30, 2023

I think this sort of interface is useful for rectangular data, but unfortunately I just don't see how it would apply to XML.

@hadley hadley closed this as completed Oct 30, 2023
@abalter
Copy link
Author

abalter commented Oct 30, 2023

It was a naive suggestion predicated by knowing that my particular data is a list of records. I think the idea was "can I ask to read a representative subset of the data". In theory, that is not a valid question to ask with unstructured data. But, in practice, it often is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants