xml ed -N prefix=NS -i /xpath -t elem -n prefix:newnode -v whatever input.xml
inserts a node called "prefix:newnode" rather than the expected: a node called "newnode" with namespace "NS".
Log in to post a comment.