XML Transformation library wanted - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

XML Transformation library wanted

boeboe Posts: 2Member
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

Comments

  • zibadianzibadian Posts: 6,349Member
    : 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.
  • infidelinfidel Posts: 2,900Member
    : 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.


    [size=5][italic][blue][RED]i[/RED]nfidel[/blue][/italic][/size]

    [code]
    $ select * from users where clue > 0
    no rows returned
    [/code]

Sign In or Register to comment.