Python Forum
Modify values in XML file by data from text file (without parsing)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modify values in XML file by data from text file (without parsing)
#3
(Apr-13-2022, 04:26 AM)ndc85430 Wrote: I'm not really buying your arguments for not wanting to parse the XML. Why do you think the whitespace and order of attributes matter?

Because I have many files like that and it need to be uploaded in software which shows requirements for software testing, and not formating it is quite iportant because it must be as clear to read as possible. Albo I want to compare edited and original file if everything is correct, but when parsing destroys the whole structure it would be impossible to check every difference in file with +100k lines
Reply


Messages In This Thread
RE: Modify values in XML file by data from text file (without parsing) - by Paqqno - Apr-13-2022, 06:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Text parsing Arik 5 306 Mar-11-2024, 03:30 PM
Last Post: Gribouillis
  file open "file not found error" shanoger 8 938 Dec-14-2023, 08:03 AM
Last Post: shanoger
  Search Excel File with a list of values huzzug 4 1,147 Nov-03-2023, 05:35 PM
Last Post: huzzug
  Replace a text/word in docx file using Python Devan 4 2,841 Oct-17-2023, 06:03 PM
Last Post: Devan
  Input network device connection info from data file edroche3rd 6 912 Oct-12-2023, 02:18 AM
Last Post: edroche3rd
  What data types can I use for default values? Mark17 1 484 Oct-09-2023, 02:07 PM
Last Post: buran
  Need to replace a string with a file (HTML file) tester_V 1 698 Aug-30-2023, 03:42 AM
Last Post: Larz60+
  How can I change the uuid name of a file to his original file? MaddoxMB 2 868 Jul-17-2023, 10:15 PM
Last Post: Pedroski55
  Convert File to Data URL michaelnicol 3 1,078 Jul-08-2023, 11:35 AM
Last Post: DeaD_EyE
  save values permanently in python (perhaps not in a text file)? flash77 8 1,118 Jul-07-2023, 05:44 PM
Last Post: flash77

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020