My features have an attribute containing an XML document and a list attribute. As an example, imagine the XML attribute containing this document:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<foo bar="aaa"/>
<baz>
<foo bar="bbb"/>
<foo bar="ccc"/>
</baz>
</root>
And the list attributes containing these values:
list{0}.ident = "aaa"
list{0}.value = "xxx"
list{1}.ident = "bbb"
list{1}.value = "yyy"
list{2}.ident = "ccc"
list{2}.value = "zzz"
What I want to achieve is to update the XML attribute so that it contains this modified XML document:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<foo bar="xxx"/>
<baz>
<foo bar="yyy"/>
<foo bar="zzz"/>
</baz>
</root>
I think this should be easily doable using the XMLXQueryUpdater in conjunction with the FME XQuery functions, but I just don't get it right...
Thanks for your help,
David