I whant to create a function that return True if a specified string is in the xml document. The problem is that i need to search in the whole document and not a specifide element, and the xml can contain severals levels… how can i do that?
I whant to create a function that return True if a specified string is
Share
Treat the contents of the XML as a string, and just search the content string for the one you are looking for.
This code was not tested
If you want a case-insensitive search for the string, replace
with