有人知道如何用 C 语言创建和更新 XML 文件吗?
最佳答案
这应该有效:
void main()
{
puts(
"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
"<feed xmlns=\"http://www.w3.org/2005/Atom\">"
" <entry>"
" <title type=\"text\">To use xml in C</title>"
" <author>"
" <name>Punit</name>"
" <uri>http://stackoverflow.com/users/352194</uri>"
" </author>"
" <published>2010-05-27T23:36:02Z</published>"
" <updated>2010-05-27T23:37:20Z</updated>"
" <summary type=\"html\">"
" <p>Any one who knows how to create and update XML file in C?</p>"
""
" </summary>"
" </entry>"
"</feed>"
);
}
关于c - 在C中使用xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2925753/