Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread selectSingleNode
Thu, Mar 27 2014 7:18 AMPermanent Link

Ronald

Hi,

I use TDocument for parsing a RSS feed. I can parse the complete feed and
show the title and all the items.

But if I use the same code in another aplication I get the error: "The
method selectSingleNode is not supported by this obect".

This is an aexample of the code that gives the error:

NodeTitleRSS:=ChannelNodes[0].selectSingleNode('title');

What am I missing here?

Ronald
Thu, Mar 27 2014 9:35 AMPermanent Link

Matthew Jones

Not sure - I'd be wanting to know what the first node is, in case it might not
support it.

http://doogalbellend.blogspot.co.uk/2012/04/cross-browser-selectsinglenode-for-xml.h
tml also has an interesting comment that it has been removed in IE10.

Also, run it in Chrome and turn on the exception stops, and see what the object is
that is being referenced.

/Matthew Jones/
Sat, Mar 29 2014 12:28 PMPermanent Link

Ronald

I found the problem. I created a omponent that reads and shows the feed. I
had put that component in a unit with name x. Later I created a new
component in another unit (not smart Smile It seemed that in my application I
refrered to the old unit and it ignored the new unit although it was
mentioned in the uses...


"Matthew Jones"  schreef in bericht
news:memo.20140327133546.2252G@nothanks.nothanks.co.uk...

Not sure - I'd be wanting to know what the first node is, in case it might
not
support it.

http://doogalbellend.blogspot.co.uk/2012/04/cross-browser-selectsinglenode-for-xml.h
tml also has an interesting comment that it has been removed in IE10.

Also, run it in Chrome and turn on the exception stops, and see what the
object is
that is being referenced.

/Matthew Jones/
Image