[fpc-pascal] getting XML element's value using dom.pp unit

Tony Pelton tpelton at gmail.com
Fri Dec 9 14:34:58 CET 2005


On 12/8/05, Bisma Jayadi <bisma at brawijaya.ac.id> wrote:
>  > i think you are going to find that "my node value" is not the
>  > NodeValue() of <anode>, but is the NodeValue() of a _child_ of
>  > <anode>.
>
> Thanks Tony... using your information, I've found what the problem is. It's a
> different way of understanding XML node, between a Delphi XML (DOM) component
> and a FPC DOM unit. I used to be a Delphi programmer, trying to migrate to be a
> Lazarus/FPC programmer. :)
.
> I got '#text' string on "n" variable. This confirms Tony's information that
> node value that I'm looking for is actually a child node (with "#text" as the
> node's name). :)

i'm not sure ... but i think that having the "#text" child node is per
the spec :

http://www.w3.org/XML/

in any event, as i said, every Java DOM parser i've worked with does
it that way.

glad to have helped.

> -Bee-

Tony



More information about the fpc-pascal mailing list