Hi,
Im having trouble getting some XML editing working.
Im extracting some elements with XML fragmenter, this generates an XML_ID attribute for each fragment.
Im then filtering for just the fragments I want then wrapping them in another element.
Im then attempting to reinsert the fragments into the XML and I thought I could use the XML_ID attribute to insert each into the position it came from.
Im using //DynamicValue[fme:get-attribute("xml_id")] to try to put them back in
Its basically the structure below but can be more complex
<Item>
<AssOpp>
<DynamicValue><\\DynamicValue>
<DynamicValue><\\DynamicValue>
<DynamicValue><\\DynamicValue>
</AssOpp>
<Item>
I was hoping the XML_ID would place only the filtered edited ones into the correct spot but I seem to be replacing every dynamic value.
The new fragments are like below and the ids look like 'id-DynamicValue1.2.3'
<BuiltInFn><StaticValue><\\StaticValue><DynamicValue><\\DynamicValue><\\BuiltInFn>
Am I attempting this correctly? can the xml_id generated by the fragmenter be used to replace the correct element back in the original document when there are a lot of similar elements?
thanks for any help!