Closed EreMaijala closed 9 months ago
@demiankatz Tweaked and simplified. Does it still work for you? I changed the namespace handling a bit so that if you add an element like customNS:foo/bar
, bar
will inherit customNS
.
@EreMaijala, I just exported again and got the same results, so I think all is well. I'll review the code changes later when I have a bit more time!
@demiankatz Could you check if these work for you? Docs missing, but you can do e.g.
./console re:ex --source=foo --inject-created='created' --inject-date="updated" foo.xml
or
./console re:ex --source=foo --inject-created='custom:date/created[@foo="bar"]' --inject-date="custom:date/updated" --add-namespace="custom=http://foobar" foo.xml