Re: [xml] libxml2 support data=> xml?
- From: "Heiko W. Rupp" <heiko rupp WiredMinds de>
- To: "chen bin" <chb_sh yahoo com cn>, <xml gnome org>
- Subject: Re: [xml] libxml2 support data=> xml?
- Date: Thu, 7 Mar 2002 11:46:23 +0100
[ It would be nice, if you would not send mails in HTML ]
|I have a urgent question about data=> xml with xmllib2 library.
| I worked for a medical intrument company. My boss told me to put
| some datas into xml format.
| [..]
| xmllib2 has such functions? If yes, their names?
Not directly, as XML is very versatile.
What you can do is
xmlDocPtr doc;
xmlNodePrt tree;
doc=xmlNewDoc("1.0");
doc->children=xmlNewDocNode(doc,NULL,"my_data",NULL);
while (<input>) {
tree=xmlNewTextChild(doc->children,NULL,"item",NULL);
xmlNewChild(tree,NULL,"variable");
xmlNewChild(tree,NULL,value);
}
http://mail.gnome.org/mailman/search?query=xmlNewDoc&subquery=%2Buri%3A%2F%5
Ehttp%3A%2F%2Fmail.gnome.org%2Farchives%2Fxml%2F&reference=off
Should give you some more ideas about this, as well as
http://www-106.ibm.com/developerworks/library/gnome3/#h1
Which is also referenced from xmlsoft.org.
--
Heiko W. Rupp
Product Management
WiredMinds Informationssysteme GmbH
Wilhelmsplatz 11
D-70182 Stuttgart
Email: Heiko Rupp WiredMinds de Phone: +49 711 49048-232
Mobile: +49 172 7471 438 Fax: +49 711 49048-111
http://www.wiredminds.de/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]