XML Parser in Scoped Application

bcmc01
Kilo Expert

Hello Folks,

I am looking for Class that parses XML document in Scoped Application. I couldn't use XMLHelper, XMLDocument as they present in global scope. When I tried to access using global.XMLHelper it throws an error java.lang.SecurityException: Illegal access to private script include XMLHelper in scope rhino.global being called from scope

4 REPLIES 4

Chuck Tomasi
Tera Patron

Hi Sameer,



Check out XMLDocument2.


XMLDocument2 is not namespace aware. We are on Instanbul, how to make XMLDocument2 namespace aware? In global.XMLDocument you can set a flag in the constructor ( qualified=true).



thanks,



Hany


Hi Chuck,



I have the same requirement but it is through the attachment icon.Below i have explained in detail with the screenshots,please go through it and ill look forward for your help.



I have created a catalog item, as shown below


find_real_file.png


in the form user is selecting the table and type of data file,and click on the attachment icon .Once the template is attached , i need to validate the template fields and records and the file type based on the selected 'Type Of Data File'(It is a drop down   with   the choices -CSV ,XML, XLS) and table fields.Then it should allow me to order if it matches.



Thanks and Regards,


Rajani


Hi Rajani,



That's a bit of a complex requirement to answer in the community. I recommend reaching out to professional services from one of our partners or ServiceNow if you do not have the in-house capability to create the solution.