open xml file

Is it possible in Blazor server version 18.3.0.52 to use the filemanager component to click on a xml file uploaded in the server and show it in a preview (like the GetImage function) or in a new browser tab sheet based on a xsl definition file ?


5 Replies 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team February 1, 2021 12:04 PM UTC

Hi Walter Martin,  
 
Greetings from Syncfusion support. 
 
We have checked your requirement with FileManager component. Could you please share the below details on your requirement.  
 
1.     Among the below list, which viewer you want to open the XML files. 
 
 
 
 
Please get back to us with the requested details, to proceed with your query.  
 
Regards,  
Sowmiya.P 



WM Walter Martin February 1, 2021 01:46 PM UTC

actually I don't have a preferred viewer. 

I think the only options to show an xml file are pdf  or document editor but at the moment I'm showing it in a simple html page. I'm using asp.net web forms (old programming style) and I'd like to translate my project using your components in blazor server side
I add you in attachment a sample of the xml file and the xsl style to show it as you can see in the result.png file.
What you can see in the png file is actually showed in a html page matching the xml file with the xsl file data

I hid the privacy data but I hope what I need is clear

Let me know if you need more information
Thanks



Attachment: sample_9de927ac.zip


KR Keerthana Rajendran Syncfusion Team February 2, 2021 08:36 AM UTC

Hi Walter, 
 
Based on your update, we suspect that your requirement is to show the XSL/XML files within FileManager similar to image Preview.  Please confirm us on this to assist you promptly.  
 
Also, refer to the similar forums below where similar things are discussed  
 
 
 
 
 
 
Please revert us with your exact requirement with FileManager component for further assistance. 
 
Regards, 
Keerthana.  
 
 
 
 
 
  


Marked as answer

WM Walter Martin February 3, 2021 11:06 AM UTC

yes, I'd like to show a preview of the xml/xsl file similar to image preview, or even better to show it in a new browser tab sheet like any other html page


KR Keerthana Rajendran Syncfusion Team February 5, 2021 11:35 AM UTC

Hi Walter, 
 
We checked your requirement with FileManager component. Currently, we don’t have in-built support to open the files in FileManager and we don’t have any viewer to open XML/XSL files. When opening files or folders, OnFileOpen event will be triggered and you can perform required actions to read or open XML files within this event based on your requirement.  
 
Refer to the following links for details on how to read or write XML files. 
 
 
 
Refer to the following links for more details on FileManager component. 
 
 
Please let us know if you need any further technical assistance with FileManager. 
 
Regards, 
Keerthana.  


Loader.
Up arrow icon