Re: navigating within an XML document

Christian Stocker <[email protected]> Thu, 19 May 2005 14:57:36 +0200
Newsgroups gmane.editors.bitflux.general
Message-ID <[email protected]>
Sorry for the late answer

On 13.5.2005 13:16 Uhr, Florian Wolf wrote:
> I mean jumping from one XML-tagged part of the document to another one. 
> For example, one way to do it might be that when you right-click on text
> inside a certain XML tag (e.g. right-click on "alb" in my example), it
> gives you the option to jump to the next part of the document with the
> same tag (e.g. to jump to "lab" in my example).

I don't have a direct solution for that, you would have to make a a menu
entry. Depending on if you want that in general or only for certain
elements, there are different solutions for that.

Then you have to find the next element either with xpath or the
treewalker class and then jump the cursor to that.

Tell me, where you need more help, then I can look it up more
thoroughly. Furthermore, which version of BXE are you using?

chregu

> 
> Thank you for your help,
> -Florian
> 
> 
> Christian Stocker wrote:
> 
>> Hi
>>
>> On 13.5.2005 11:36 Uhr, Florian Wolf wrote:
>>  
>>
>>> Hello,
>>>
>>> I was wondering if anyone knows how to implement a function in bitflux
>>> that allows navigating between parts of an XML document with the same
>>> XML tag.  For example, if I have the following (partial) document:
>>>   
>>
>>
>> What exactly do you mean with "navigating"?
>>
>> chregu
>>
>>  
>>
>>> "bla bla bla <interesting>alb</interesting> bla bla bla
>>> <interesting>lab</interesting> bla bla bla"
>>>
>>> I would like to be able to navigate from the first instance of text
>>> tagged with <interesting> to the second instance of text tagged with
>>> <interesting>, or vice versa (i.e. in my example navigate from "alb" to
>>> "lab" and vice versa).
>>>
>>> Thank you very much in advance for your help.
>>> -Florian
>>>
>>>   
>>
>>
>>  
>>

-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
http://www.bitflux.ch  |  [email protected]  |  gnupg-keyid 0x5CE1DECB
-- 
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users