Chciałem wczytać pewną informację z pliku xml, lecz wywala mi komunikat "Element does not contain a single text node".
Plik xml wygląda tak:
- Kod: Zaznacz cały
<?xml version="1.0" ?>
<gfile>
<status>ok</status>
<file>
<file_prop>
<key>00QQmiI7u3s</key>
</file_prop>
</file>
</gfile>
Kod którym próbuje go wczytać
status mi zwraca a key już nie
XMLDocument1->Active = true;
Edit3->Text = "Status: " + XMLDocument1->DocumentElement->ChildNodes->FindNode("status")->NodeValue;
Edit2->Text = XMLDocument1->DocumentElement->ChildNodes->FindNode("file")->ChildNodes->FindNode("file_prop")->
ChildNodes->FindNode("key")->NodeValue;
Pozdrawiam Knopers