I'm looking for some library that can parse XML or XSD files and create (even simple) GUI interface which is parsed schema compliant (some kind of a GUI editor for the schema). The user could fill it and save into XML file. I want to use it in my program as a module, so I can't use any external programs. I tried to find something in the Web, but still unlucky:(
Do you know any libraries such like that one? I want it in C# but if there are no such things written in .NET I could have a look at something from other language.
With a simple google search I came up with the following free tools:
XML Data Editor
Easy XML Editor
Related
I'm using XML configuration files with custom XML tags in a small javascript opensource project.
The framework takes xml config files written by the user.
Because simple XML is a little bit too much for some users and it feels like handcoding, I want to build a little editor.
The XML Files are really small and simple: An Text (maybe with html formatting), and two other text parameters (simple tags) (one has an additional binary option)
I thought this use case happens regularly and perhaps someone has coded a framework or template for building such an editor. I could really save some time.
I googled for that, but found nothing.
The language, which the template/framework uses isn't important, but I would prefer Java, C# or Python to run it on many platforms.
Does anybody know a tool, framework, template I could use?
My project actually use XML files to define flow of the application.
I like to convert this XML a image that represent the flow, to use it in the documentation.
There is any c# library that help with the graphical part of a UML generation?
There is any XML standard format to generate UML flows that can be converted to IMG?
I need something like this
I use GraphViz to model things like this. No, there's no particular .Net component to do it but you can fairly trivially generate the simple textual version of Graphviz and then run the command-line to generate the diagram and render it to your choice of png, svg etc.
You can see an example in my answer to this question.
Update 2018-06-07
Recently I've been using another tool which puts easier syntax on top of GraphViz - PlantUML. There's a great online version PlantText
Are you looking for something like this?
http://www.xmlmodeling.com/
I need to create a script that extracts some data from a complex Excel 2003 file (with multiple sheets and different tables inside a single sheet) and produces different XML files that need to be validated against a given XSD file.
My preferred language is Python;
to create and validate XML files i would go with lxml.
What do you suggest for parsing XLS files?
Is xlrd the right tool to use for complex Excel files?
Or do i need to convert all the sheets in CSV manually, and read files line by line, splitting and getting data?
I accept C#, VB6, VBA suggestions too.
[disclaimer: I'm the author of xlrd]
xlrd is quite suited for this kind of job. Get the latest version from PyPI. Get the flavour from the tutorial found here. XLSX support is in alpha test; e-mail me if you need it. The awkwardness and lossiness of the save-as-CSV approach was one of the things that prompted me to write xlrd.
Xlrd is OK. We use it extensively to import XLS files full of references and formulas with multiple sheets and data presented in custom (not Latin-1) encoding.
I am convinced the most simple solution for this task is using Excel VBA together with MSXML parser. Look here for some links how to use the MSXML parser in VBA for reading XML files; you can adopt this easily for writing XML files, I think.
I cant answer whether xlrd/python is the right tool for the job - as I don't know python well enough.
But there are many ways to access the excel data...in the main you have VBA built directly in to Excel.
Then you have Ado.net See David Hayden's article here which allows you to access the data via any DotNet language...even IronPython
I need a way to store data inside xml files and write to differant parts of the file, as well as add elements and structure to the xml document.
I need full control over the file names and xml documents, and it would be much easier if I could use some kind of SQL layer to read and write from the xml.
Just due to project constraints I am tied into using XML, but if possible would like a trust and tested open source solution for this.
Or should I be using out of box .net functionality for this?
you should be using out of box .net functionality.
the XML namespaces and Linq-to-XML will do this for you.
With Excel 2003 and higher it is possible to use the SpreadsheetML format to generate Excel spreadsheets with just an XML stylesheet and XML data file. I've used this in some project and works quite nice, even though it's not easy to do.
From the Microsoft Download site I've downloaded the XSD's that make up SpreadsheetML and in my ignorance, I've tried to convert them to C# classes. Unfortunately, xsd.exe isn't very happy about these schema files so I tend to be stuck.
I don't need an alternative solution to SpreadsheetML since it works fine for my needs. It's just that my code would be a bit easier to maintain for my team members if it's not written in a complex stylesheet. (It sucks to be the only XSLT expert in your company.)
All I want to know if someone has successfully created Excel SpreadsheetML files with .NET without the use of third-party code and without XSLT. And if you do, how did you solve this?
(Or maybe I just have to discover how to add namespaces to XML elements within XML.Linq...)
A while ago I used the XmlDocument and friends to create a SpreadsheetML document with formulae, formats and so on, so it is possible if a bit fiddly.
This MSDN page is what you need to get started with using the namespace in LINQ.
I have used this library and there is even a tool to generate the C# code that you need from an exsisting excel file.
http://www.carlosag.net/Tools/ExcelXmlWriter/
I had started on a similar problem a few weeks back, but due to some impending issues I had to put it at the back burner.
Back then I referred to this http://www.codeproject.com/KB/aspnet/ExportClassLibrary.aspx?fid=113399&df=90&mpp=25&sort=Position&tid=2609600
I really couldn't get started with it but plan to get back on it soon. I hope the link helps.
cheers