I have an XML element without any children. Its node value is:
<property key="TYPES_TO_EXCLUDE_IN_COLLECTOR_PROCESSING"/>
And I am trying to create a first child of this element and want to set a value to it, e.g. like this:
<property key="TYPES_TO_EXCLUDE_IN_COLLECTOR_PROCESSING">
Some value
</property>
How can I do this in Java?