Create XML Reader in C for Sun Machine

  • Thread starter Thread starter db1uover
  • Start date Start date
  • Tags Tags
    Machine Sun xml
AI Thread Summary
The discussion centers on developing a routine in C to read CSV data, append it to an XML template, and save the result, specifically on a Sun machine. The user is restricted from using C# or C++ and is seeking resources or example code in C, as most available examples are in C# or Java. The team has already created a reader for the XML nodes. It is suggested that for reading the CSV file, functions like fscanf(), getline(), and sscanf() are appropriate methods to utilize, especially if the CSV format is known. The focus remains on finding suitable C resources for XML and CSV handling.
db1uover
Messages
16
Reaction score
0
I have to write a routine that reads in csv data and appends it in an xml template and saves it. I am not allowed to use C# or C++. It must be in C. I am running it on a Sun machine. Our team has come up with the reader for the nodes of the xml. I've checked several websites looking for example code, but everything is in C# or Java. I realize those are more helpful when working with PHP, etc. Is there somewhere I can find a reader for C?
 
Technology news on Phys.org
If you know the format of the CSV file the normal way is to just use fscanf() - or better getline() and sscanf().
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Back
Top