Re: [xml] attribute and value element
- From: "Tallapragada, Sridevi" <Sridevi Tallapragada netapp com>
- To: " \"David\" " <lordkain tlen pl>, "xml @ gnome. org" <xml gnome org>
- Subject: Re: [xml] attribute and value element
- Date: Fri, 17 Nov 2006 14:04:05 +0530
Hi David
Check if this helps:
hchild2 = xmlNewChild(hchild1,NULL,(const xmlChar*)"elementname","also a
value here");
xmlSetProp(hchild2, (const xmlChar*)"attr1", (const xmlChar*)"hello");
Sridevi
-----Original Message-----
From: "David" [mailto:lordkain tlen pl]
Sent: Friday, November 17, 2006 1:20 PM
To: xml @ gnome. org
Subject: [xml] attribute and value element
Hello,
I want to use the xmlwriter module from libxml2 and want to code that
resuls in the following xml.
<elementname attr1="hello">also a value here</elementname>
I can produce the following xml, but i want to use value and attribute
with one xml-tag.
<elementname attr1="hello">
<value>also a value here</value>
</elementname>
I hope someone can help me.
Cheerz, David
_______________________________________________
xml mailing list, project page http://xmlsoft.org/ xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]