Jump to content

Selection of node


wchknight

Recommended Posts

Hi, Is there a way to select a node which doesnt have any child elements? This is from my xml file:

<td>abc</td><td><content>efg</content></td<td>hij</td><td><content>klm</content></td>

This is the retrieval code:

<xforms:repeat nodeset="/abc:tr"><td><xforms:input ref="abc:td"/></td></xforms:repeat>

I nid to do a retrieval on everything, however this gives me an error Error: XForms Error (42): input element may not be bound to complex content.As the some of the <td> element contain the <content> element.Is there a way to solve this problem? Thx

Link to comment
Share on other sites

I'm really just guessing, as you've provided very little code and I haven't understood completely what you're trying to achieve... but how about using

abc:td/text()

this should match the contents of abc:td without the contents of it's descendants.

Link to comment
Share on other sites

I'm really just guessing, as you've provided very little code and I haven't understood completely what you're trying to achieve... but how about using
abc:td/text()

this should match the contents of abc:td without the contents of it's descendants.

Wow, thx alot, tht's exactly wat I neededThx a million =)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...