Let's say this is the location element: <.location>blah...<./location>
It can be empty like this: <.location/>
Is there a way to detect the backslash in the empty element in order to not return it?
Let's say this is the location element: <.location>blah...<./location>
It can be empty like this: <.location/>
Is there a way to detect the backslash in the empty element in order to not return it?
Copyright © 2021 Jogjafile Inc.
If what you really want is the text inside location tags, you can find those easily with the right XPath:
If, for some reason, you actually need the location element itself, use this: