revXMLNodeContents
Martin BLACKMAN
martinblackman at gmail.com
Sat Aug 20 05:18:41 EDT 2005
Bug 3072 now assigned to this.
regards
Martin Blackman
On 20/08/05, Martin BLACKMAN <martinblackman at gmail.com> wrote:
> > Message-ID: <BF2C17AE.295F1%kray at sonsothunder.com>
> > Content-Type: text/plain; charset="US-ASCII"
> >
> > On 8/19/05 7:37 PM, "Martin BLACKMAN" <martinblackman at gmail.com> wrote:
> >
> > > Could anyone comment on whether the behaviour of the first example
> > > below is correct ? I would have thought that both outputs should be
> > > the same ??
> > >
> > > put "<root>This is <child>a test</child></root>" into tXML
> > > put revcreateXMLtree(tXML,false,true,true) into tID
> > > put revXMLRootNode(tID) into tnode
> > > answer revXMLNodeContents(tID,tnode)
> > > --Outputs 'this is a test'
> > >
> > > put "<root>This is <wrap><child>a test</child></wrap></root>" into tXML
> > > put revcreateXMLtree(tXML,false,true,true) into tID
> > > put revXMLRootNode(tID) into tnode
> > > answer revXMLNodeContents(tID,tnode)
> > > --Outputs 'this is '
> >
> > Personally, I think this is a bug - on two levels:
> >
> > 1) Since the <wrap> tag has no text contents, it stops revXMLNodeContents
> > from going any deeper than "This is ". (If you did <wrap>certainly <child>
> > ... and ran it, you'd get "This is certainly a test".)
> >
> > 2) To my understanding, revXMLNodeContents shouldn't go to any children of
> > the node you identify - it should always return "This is ".
> >
> > Personally, I'd log it is a bug in Bugzilla...
> >
> > Ken Ray
> > Sons of Thunder Software
> > Web site: http://www.sonsothunder.com/
> > Email: kray at sonsothunder.com
>
>
> OK I will bugzilla it. Wow, my first BZ !
>
> <aside> I've written thousands of lines of transcript in the project
> I'm working on and while this is maybe not the first Rev bug I've come
> across, its the only one that could affect the data processing. So its
> still a big two thumbs up for Rev</aside>
>
More information about the use-livecode
mailing list