about xml_to_c_valid.rb - mgaidamak/ruby-parsing GitHub Wiki

this script can:

  • parse valid xml file (types.xml and types-fxs.xml) to REXML::Document;
  • run throw elements "PTYPE";
  • format c-style code for integer and string variables.

after using this script you should:

  • paste c-style code blocks to your programm.

Now you have easy way to prase XML files to c-style code blocks.