How To Write some Text in XML file in Particular Element
In Particular Element i want to add New attribute and values in Xml file in Uipath
How To Write some Text in XML file in Particular Element
In Particular Element i want to add New attribute and values in Xml file in Uipath
There is no activities to modify/add elements to the existing XML in UIPath.
I recommend to use invoke code activity with a code to modify/add elements to the existing XML.
Refer the below article for VB code how to add an element -
Regards,
Karthik Byggari
@Logesh_Kumar
Just provide some Sample Data from your scenario and WE can faster workout Demo Statements or Sample xaml for you.
Hi ppr sir,
this is my xml file
cft2cftm20130018.xml (50.8 KB)
I want is
This is xml File Line
I write to add That component element abc:xyz
Hi ppr sir,
this is my xml file
cft2cftm20130018.xml (50.8 KB)
I want is
I write to add That component element abc:xyz
ok, will have a look on it soon in my lunch break
Hmm kkk sir
@Logesh_Kumar
PFA a sample xaml Logesh_Kumar.xaml (9.1 KB)
Doing Following:
I was wondering that namespace was not required. But with logging out some element names It gave me some structure insights.
There a many ways to do such thing (eg working with strings like <abc attri1="val1">SomeText</abc>
)
so just do some playing by yourself and I can recommend to have a look on Docus e.g. @KarthikByggari has referenced in his answer.
Happy Automation
Hi ppr sir,
That Example please send in folder zip file
Directly its not opening(Missing Activity Cannot open error come) so send me in zip file
@Logesh_Kumar
I can zip but will Take some time.
in the meanwhile you can Download xaml directly in your Project and ensure the uipath webactivties package is referenced via the dependency Manager. Then IT should Work as well