I have a fragment files the route element can be any Tag
<ACT DOCID="a1817(57Geo3)c97" SOURCE="S-I-F">&contents-root;</ACT>
I want BS4 to give as below stripping out the text I work on sgml fragment files the tags can varied and are always the root , The text can also be anything
<ACT DOCID="a1817(57Geo3)c97" SOURCE="S-I-F">ACT>