ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You need to specify first the format of the xml and the way, how do you want to construct that header file. Which language do you prefer? Do you have any plans or tries or sample program?
Hi pan64,
I had converted CSV to XML using a c++ program and in windows this xml is used to convert to c++ header file using msxsl.exe but this does not work in Linux.
Now, I have compiled the CSV2xml c++ program in Linux and am able to create XML file but now I want to convert this xml to c++ header file.
Here is some of my xml file content:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Row>
<Error_code>20000</Error_code>
<Application>App</Application>
<Type>E</Type>
<Text>The page range selected for the %s report falls outside\nthe page range selected for the compared report.</Text>
<Output_Method>Format</Output_Method>
<Internal_ID___enumeration >IDS_PAGE_RANGE_SELECTED_FALLS_OUTSIDE_PAGE_RANGE_SELECTED_FOR_COMPARED_REPORT</Internal_ID___enumeration >
<File><path of file>\filename.cpp</File>
<Function>DifferenceReportDlg::OnOK() </Function>
<Source_Line_Number>288</Source_Line_Number>
</Row>
I tried to install but as I am having RHEL 4 and yum is by default not installed and we do not have subscription yet. So, is there any way we could install wine.
Hi pan64,
I had converted CSV to XML using a c++ program and in windows this xml is used to convert to c++ header file using msxsl.exe but this does not work in Linux.
It looks like mxsxsl.exe is an XSLT processor, you can probably use the same xsl file with xsltproc.
Let me say this as politely as I can ... and please understand that I donot mean to insult you in any way.
The tool you have (an XSLT processor) is the tool that you want to use ... but you don't know it yet. You don't know how to use it yet. Therefore, start by learning. Rome wasn't built in a day. At this point, you are quite ignorant of the subject, and it plainly shows. So, that becomes the first obstacle to be addressed in getting this particular problem solved: learn how.
Surf for "XSLT." Gawk at the Periodic Table of the Elements that was created entirely using XSLT, then browse its source-code on your browser. (Your browser does the work!)
Sundialsvcs,
Thanks for the suggestion and appreciate for helping me to move forward step by step but as am stuck in middle of some official work and thus am in process to find out on converting xml to c++ header file directly.
I will definitely start learning by the way you have mentioned but after this work is completed.
...Surf for "XSLT." Gawk at the Periodic Table of the Elements that was created entirely using XSLT, then browse its source-code on your browser. (Your browser does the work!)
i originally interpreted that as gnu-awk <@.
it mite be possible to use awk as some sort of xml parser ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.