List Info

Thread: Set property




Set property
user name
2006-12-21 18:55:57
Hello,
I am trying to set a property in a xml document, but I
didn't get it. 
The node has 2 properties, Description and Value, I can set
the first 
one, but I can't change the value of the second one. The xml
is:

<MODULE Description="REM"
Value="00">
    <CONFIGURATION>
	<Unit Description="Unit type"
Value="01"/>
    </CONFIGURATION>
</MODULE>

I have tried with
xmlNodeSetContent(node, "xx");
when node is "/MODULE/CONFIGURATION/Unit/Value"
and it was impossible (segmentation fault)
but I can do it if node is
"/MODULE/CONFIGURATION/Unit/Description"

Also with
xmlSetProp(node, "Value", "xx");
when node is "/MODULE/CONFIGURATION/Unit"
is not possible but I can do
xmlSetProp(node, "Description", "xx");

I don't understand, because xmlGetProp and xmlNodeGetContent
always 
works fine, but not Set option,
What happen?

Thank you.


_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )