From: Noam P. <npo...@us...> - 2013-11-30 00:07:28
|
On Fri, Nov 29, 2013 at 12:26 AM, <ans...@us...> wrote: > I met a problem when using ed, like this > xml ed -u "/ns2:testCase/scenario/description" -v "haha lala /& gt;" > test_case_01_normal22.xml > But the result is > "\<description>haha lala /& amp;gt;\</description>" I don't understand where the backslashes and space after the "&" are coming from, I tried something similar and got <xml>haha lala /& gt;</xml> > How to make & just print &? That would be invalid XML, xmlstarlet will not produce it. In XML, "&" means "&". PS: please send xmlstarlet questions to the mailing list (I've added it to cc), or make a support request at http://sourceforge.net/p/xmlstar/support-requests/. |