Hi All,
I am trying to update a xml by inserting multiple attribute in an element. It all works fine if only 1 attribute is inserted
char *input="<a><b value1=\"45\"><c></c></b></a>";
lr_save_string(input,"Input");
lr_xml_insert("XML={Input}", "ResultParam=Result",
"Query=/a/b",
"Position=attribute",
"XmlFragmentParam=extension=\"4444\""",
LAST );
Output: <a><b extension="4444" value1="45"><c/></b></a>
But when I try to insert multiple attribute it is giving me unwanted symbols
char *input="<a><b value1=\"45\"><c></c></b></a>";
lr_save_string(input,"Input");
lr_xml_insert("XML={Input}", "ResultParam=Result",
"Query=/a/b",
"Position=attribute",
"XmlFragmentParam=extension=\"4444\" extension1="23"",
LAST );
Output: <a><b extension="4444" extension1="23" value1="45"><c/></b></a>
Can anyone help me out in this one?
P.S. This thread has been moved from Community Feedback & Suggestions to LoadRunner Support Forum. - HP Forum Moderator