Create XML Reader in C for Sun Machine

  • Thread starter Thread starter db1uover
  • Start date Start date
  • Tags Tags
    Machine Sun xml
Click For Summary
SUMMARY

The discussion centers on creating an XML reader in C for a Sun machine, specifically designed to read CSV data and append it to an XML template. The user is restricted from using C# or C++ and seeks guidance on finding example code in C. The team has developed a reader for XML nodes, and the user suggests using functions like fscanf(), getline(), and sscanf() for handling CSV data. The need for C-specific resources is emphasized due to the prevalence of examples in other programming languages.

PREREQUISITES
  • Proficiency in C programming language
  • Understanding of XML structure and parsing
  • Familiarity with CSV file format
  • Experience with file I/O operations in C
NEXT STEPS
  • Research C libraries for XML parsing, such as libxml2
  • Explore examples of CSV handling in C using getline() and sscanf()
  • Learn about file I/O operations in C for reading and writing data
  • Investigate best practices for structuring XML templates in C
USEFUL FOR

Software developers, particularly those working in C, systems programmers, and anyone tasked with data transformation from CSV to XML on a Sun machine.

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().
 

Similar threads

  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 22 ·
Replies
22
Views
2K