Hi,

Thanks a lot for the quick help. Works like a charm :)

best regards,
Roman 

> -----Original Message-----
> From: Hussein Shafie [mailto:hussein at xmlmind.com] 
> Sent: Monday, November 19, 2007 11:27 AM
> To: Huditsch, Roman (LNG-VIE)
> Cc: xmleditor-support at xmlmind.com
> Subject: Re: [XXE] Selecting descendant
> 
> Huditsch, Roman (LNG-VIE) wrote:
> > 
> > I would like to select a node with
> > <cfg:command name="selectNode"
> > parameter="ancestorOrSelf[implicitElement] aktuelles"/> 
> <cfg:command 
> > name="selectNode" parameter="descendant[implicitElement]
> > kunden-kategorie"/>
> > 
> > my structure looks as follows
> > 
> > <aktuelles>
> >     <meta>
> >             <autor></autor>
> >             <erscheinungsdatum></erscheinungsdatum>
> >             <letztbearbeitungsdatum></letztbearbeitungsdatum>
> >             <kategoriezuordnung>
> >                     <kunden-kategorie name="art-id"/>
> >                     <glp-themenkategorie></glp-themenkategorie>
> >             </kategoriezuordnung>
> >             <registereintrag></registereintrag>
> >     </meta>
> >     <titel></titel>
> > ...
> > 
> > I haven't found a solution to select <kunden-kategorie> from 
> > everywhere in my document.
> > I suppose that the descnedant selection doesn't work in my case 
> > because of "If no descendants of selected node were previously 
> > selected, searches a descendant node along the first child axis."
> 
> Yes.
> 
> > Is there a simple way to select a specific element node in 
> my document 
> > (maybe with an absolute path)?
> 
> Sure, forget about command "selectNode" and instead, use 
> macro-command element <set> and an XPath variable mapped to 
> the selection in XXE. See 
> http://www.xmlmind.com/xmleditor/_distrib/doc/commands/selecti
> on_vars.html
> 
> 
> 
> 

Reply via email to