[fpc-devel] How to get contents of TDOMNode.NodeValue ???

Alexander Todorov alexx.todorov at gmail.com
Mon Oct 31 15:06:53 CET 2005


Hi all,
I have a XML document and need just a part from it. A simple message
to show on a dialog.
<document>
....
 <message>Hello word</message>
....
</document>

I did :

ShowMessage(Document.FindNode('message').NodeValue)

but it returns an empty string. Showing NodeName returns 'message'.

How to get the contents of the <message> tag ???? Is it working ?

Also if we have

<tag>
  <inner_tag>
.....
  <inner_tag>
.....
</tag>

will NodeValue return the string between the <tag> tag ????

I've noticed that thare is no simple way to get / set that string as
it is in delphi / msxml.

Regards.



More information about the fpc-devel mailing list