Project

Profile

Help

Bug #5821

open

Feature request: allow xml_file for parse_xml, etc.

Added by Norm Tovey-Walsh about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Low
Category:
-
Start date:
2023-01-16
Due date:
% Done:

0%

Estimated time:
Found in version:
Fixed in version:
Platforms:

Description

The click Python library allows me to declare that the input parameter or argument is an existing file. When I do, what I get as an argument is the opened file. It would be nice to be able to pass that directly to parse_xml, etc.

Actions #1

Updated by O'Neil Delpratt about 1 year ago

Yes I agree that would be nice to have. Added on the todo list.

Actions #2

Updated by O'Neil Delpratt about 1 year ago

parse_xml internally calls the C++ code which in turn calls a Java method to parse the XML. I am not yet sure how this would work if we had a File object. Internally we could read the file to string or get the file name then pass this data to the C++ code. This does not seem ideal to me

Please register to edit this issue

Also available in: Atom PDF