How to read xml attachments in script

Tadz
Tera Guru
Tera Guru

Hi Everyone,

Is there a way to read an XML attachment to code?

There is an available GlideExcelParser to read excel attachment.

I was hoping if there is also for XML attachments.

 

Thanks,

Tadz

8 REPLIES 8

@Tadz 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Tadz 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Kieran Anson
Kilo Patron

There is XMLDocument which is a script include intended for this. It wraps the logic of GlideXMLDocument just to make the API a little more friendly.

nt6
Kilo Expert

Script from this Link works for me in Global.