\starttext
\enabletrackers[xml.parse]
%\enabletrackers[xml.path]
%\enabletrackers[xml.profile] -- exclusive
%\enabletrackers[xml.entities]
\startluacode
local xmp = xml.load("xmp-default.xml")
-- 1. replace empty ; (results in "dc:CREATOR1" without tags)
xml.replace(xmp,"xml://rdf:Description/dc:creator/rdf:Seq/rdf:li","dc:CREATOR1")
-- 2. inject XML sequence; (how?)
--xml.inject (xmp,"xml:///rdf:Description/dc:creator/rdf:Seq","dc:CREATOR1")
-- delete the first entry
--xml.delete(xmp,"xml://rdf:Description/dc:creator/rdf:Seq/rdf:li")
-- 3. insert element into ; (only after/before, but not into empty)
--xml.insert (xmp,"xml:///rdf:Description/dc:creator/rdf:Seq","dc:CREATOR2")
xml.save(xmp,"xmp.xml")
\stopluacode
\null
\stoptext