如何使用.NET平台读取.srx文件并将数据保存到数据库 [英] How can I read .srx files and save data to database using .NET platform

查看:60
本文介绍了如何使用.NET平台读取.srx文件并将数据保存到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以.srx格式从我的客户端获取文件我需要读取这些文件中的数据并将其保存在数据库中。我已经在互联网上搜索了解决方案,但我找不到。



我尝试了什么:



i搜索了一个答案。但是没有关于这个主题的足够数据。只发现它遵循xml格式

i have file from my client in .srx format i need to read data in those file and save this in database . i have searched in in internet for solution but i cant find any.

What I have tried:

i have googled to find out an answer. but there is no sufficient data on this topic.only found that it follow xml format

推荐答案

首先找出SRX文件是什么 - Google和Wiki可以提供帮助: 细分规则交换 - 维基百科,免费的百科全书 [ ^ ]

这表示它是一个基于XML的文件,但是在某些语言中很难处理。

它还说有一个开源应用程序可以处理它们: Ratel [ ^ ]

由于它是开源的,您可以获取源代码的副本,并尝试修改它以满足您的需求,或者至少确定您在应用程序中需要做的事情。



不要指望这是微不足道的,不要指望任何人去这里是代码,只是使用它 - 这是一种专门的文件格式,自2011年以来可能不受支持,所以你可能不会找到那么多人使用它!
Start by finding out what an SRX file is - Google and Wiki can help: Segmentation Rules eXchange - Wikipedia, the free encyclopedia[^]
That says it's an XML based file, but that it's difficult to process in some languages.
It also says there is an open source app that processes them: Ratel[^]
Since it's open source, you can grab a copy of the source code, and try to modify that to fit your needs, or at least work out exactly what you need to do in your app.

Do not expect this to be trivial, and do not expect anyone to go "here is the code, just use this" - this is a specialised file format which may be unsupported since 2011, so you probably won't find that many people using it!


这篇关于如何使用.NET平台读取.srx文件并将数据保存到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆