I try to read a value out of an xml-file.
I get the right line into a char[255] using fgets.
When I try to extract the nodes content, the corresponding value doesn't get changed.
XML:
\t<name>A fancy Name</name>
C++:
...
char buff[255];
fgets(buff,255,Filestream);
scanf(buff,"\t<name>%[^<]</name>",&(Daten.name));
Daten.name is an UnicodeString (used by Embarcadero's c++-Builder) by the way. But Daten.name remains unchanged...
I also tried not using the pointer to Daten.name but the variable directly, but it doesn't seem to change anything...
Can you help me find my mistake here?