Hi how to create an xml parser in c? Please help me hoe to write the code?
Hi how to create an xml parser in c? Please help me hoe to write the code?
Writing a simple one is as simple as
Writing a decent one that can cope with any xml document on the other hand takes a bit of effort.Code:int ch; FILE *fp = fopen("file.xml","r"); while ( (ch=fgetc(fp)) != EOF ) { if ( ch == '<' ) { } else..... }
The Expat XML Parser
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.