User bio
404 bio not found
Member since Dec 11, 2015
Posts:
Replies:
After further research, it does not seem possible to use object script to write directly to the Windows event log without using a bridge such as PowerShell or similar
Thanks Manel
It worked great. Admittedly, I got the surrounding text out when I actually wanted the XML out. But by your example I was able to turn it around and get the XML out.
Working string: XMLstr
set xmlheadstart=$f(XMLstr,"<?xml ")-6
set xmlheadend=$f(XMLstr,">",xmlheadstart)-1
set firsttag=$tr($p($e(XMLstr,xmlheadend+1,*),">",1)_">",$c(13,10))
set tag=$p($e($p(firsttag," ",1),2,*),">",1)
set xmlend=$f(XMLstr,"</"_tag_">")
set NewXMLstr = $EXTRACT(XMLstr,xmlheadstart,xmlend-1)
Quit NewXMLstr
The NewXMLstr variable now contains the entire XML fragment.
Many thanks!
Regards Michael
Certifications & Credly badges:
Michael has no Certifications & Credly badges yet.
Global Masters badges:
Followers:
Michael has no followers yet.
Following:
Michael has not followed anybody yet.
Thanks Eduard!
I was just looking at something similar. I will try it out
/Michael