LightXML.jl icon indicating copy to clipboard operation
LightXML.jl copied to clipboard

Prints entire XML doc in show method

Open ssfrr opened this issue 10 years ago • 3 comments

If you call parse_file from the REPL and neglect to put a semicolon after, LightXML will print out the whole document. It may be better to follow the example of the Array methods and only do a partial print if there's more data than will fit on one screen.

ssfrr avatar Jul 19 '15 22:07 ssfrr

Not a bad idea, I guess. I'm not sure exactly which functions you'll need to implement to do this, maybe something with showcompact? I'd review a PR if you or anyone else can come up with something that works.

tkelman avatar Jul 19 '15 22:07 tkelman

This is pretty important. I just tried to open some open street map data using LightXML and it crashed HARD (the file is like 200MB).

twavv avatar Dec 08 '19 23:12 twavv

What about saving filesize somewhere and if larger than 1MB just print a warning?

EDIT: Found XML.jl has some sane defaults.

xgdgsc avatar Jul 24 '23 14:07 xgdgsc