9

I have an XML file structure and I want to convert it to YAML file structure and probably also for the future use.

Could you please suggest/recommend me a conversion tool to convert XML to YAML?

halfer
  • 19,824
  • 17
  • 99
  • 186
olidev
  • 20,058
  • 51
  • 133
  • 197
  • see here maybe: http://stackoverflow.com/questions/2943862/is-there-anything-exist-to-convert-xml-yaml-directly There are a bunch of tools mentionned – florent Oct 19 '12 at 10:21
  • 1
    You may want to check out [Data Transformer](https://geosystemsdev.com/products/data-transformer/) (disclaimer - I'm its developer). It converts between XML, YML, and other formats locally. You can get it from the [Mac App Store](https://apps.apple.com/us/app/data-transformer/id1490843070) or the [Microsoft Store](https://www.microsoft.com/en-au/p/data-transformer/9p2xp6nt2pv2). – Geo Systems Jan 11 '20 at 04:10

1 Answers1

0

UPDATE: Editing this answer as I realize today when I wrote it, I had a little experience with YAML.

YAML stands for YAML Ain't Markup Language. Having said that, XML (eXtensible Markup Language) is. So theoretically, you would have feature limitations converting one to another (in this case XML to YAML..) although YAML, having experienced it while creating AWS Stacks, seems to be more "human" friendly in comparison to XML.

A) You could use an online tool (although you must be careful. Your company policies might concern you about uploading software specs online):

B) You could use a C# (.NET) to convert XML to YAML.

There are NuGet packages available providing you Serialization tools allow your app do that in the code. (See: https://www.nuget.org/packages?q=yaml)

C) Worse case scenario - and I'm not liking my original idea: you could build an XSL file would help you to transform an XML file to literally any other text format (hypertext content). XSL Reference: MSDN

Rikki
  • 3,338
  • 1
  • 22
  • 34