XML Development

Moderators: None (Apply to moderate this forum)
Number of threads: 257
Number of posts: 456

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
XML Transformation library wanted Posted by boe on 25 Aug 2005 at 8:47 AM
Hi,

Im searching for a library - free or commercial - which gives me the possibility to transform files (e.g. ini, csv, ...) to XML by the use of schema files.
My aim is to develop a program in c# which has to transform XML data to csv, ini, ... files and vice versa. I think .NET gives me a good possibility to transform XML to what ever using XSL, but what about the way back. Therefore Im searching for a library giving me that possibility. As the source files which have to be transformed have different structure/look the use of schema files are a must.

Anybody knows a good product?

Thanks in advance
Andreas
Report
Re: XML Transformation library wanted Posted by zibadian on 25 Aug 2005 at 10:17 AM
: Hi,
:
: Im searching for a library - free or commercial - which gives me the possibility to transform files (e.g. ini, csv, ...) to XML by the use of schema files.
: My aim is to develop a program in c# which has to transform XML data to csv, ini, ... files and vice versa. I think .NET gives me a good possibility to transform XML to what ever using XSL, but what about the way back. Therefore Im searching for a library giving me that possibility. As the source files which have to be transformed have different structure/look the use of schema files are a must.
:
: Anybody knows a good product?
:
: Thanks in advance
: Andreas
:
I've created my own Delphi structure for writing XML. It is basically a tree-structure of objects. Each of which can produce its own XML code. for values this is the simple data along with its tags. For a node, it produces the node's tags with inside it the XML of each of the childnodes. An XML document is in this case an extension of the XML-node.
This structure is also present in the MSXML.DLL. This library exports a number of interfaces for parsing and creating XML files.
Report
Re: XML Transformation library wanted Posted by infidel on 25 Aug 2005 at 2:46 PM
: Hi,
:
: Im searching for a library - free or commercial - which gives me the possibility to transform files (e.g. ini, csv, ...) to XML by the use of schema files.
: My aim is to develop a program in c# which has to transform XML data to csv, ini, ... files and vice versa. I think .NET gives me a good possibility to transform XML to what ever using XSL, but what about the way back. Therefore Im searching for a library giving me that possibility. As the source files which have to be transformed have different structure/look the use of schema files are a must.

If by "schema file" you mean XML Schema then there isn't any such thing. XMLSchema describes XML documents. ini and csv files are not XML documents.

A big problem you're going to have is that XML includes a lot more information about the data (meta-information) than a csv file contains. A ini file has a bit of meta information in it, but it's still not structured like XML is. And at any rate, XMLSchema only describe document structures, they don't create them.

I think you'd be better off looking for libraries that parse the various kinds of files and write simple programs yourself to convert the data to XML. Then you can validate against a schema if you want to.


infidel

$ select * from users where clue > 0
no rows returned





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.