Sensitive XML Sensitivity

I am trying to use Beautiful Stone Soup (BSS) to modify existing XML with case-sensitive tag names. When BSS reads in XML, it leads all the tag names to lowercase, and I cannot find an easy way to restore the original capital letter pattern when writing it back to the file. This leads to downstream problems because the output XML no longer validates the schema (since the schema expects an initial capital letter). Is there a flag that I can set when I first read it, which will indicate that BSS treats tag names as case sensitive?

+4
source share
1 answer

Have you tried ElementTree ? A beautiful soup is great for outputting data from HTML, no doubt. But ElementTree pretty much sets up a panel to handle Python XML.

Some time has passed since I needed it, but I don’t remember how ET was doing something unpleasant for my tag names.

+2
source

Source: https://habr.com/ru/post/1379210/


All Articles