wchknight Posted July 26, 2007 Share Posted July 26, 2007 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 More sharing options...
wchknight Posted July 30, 2007 Author Share Posted July 30, 2007 Anyone know how to retrieve juz the <td> element only? without the child <content>I ve been stuck to this fo quite a while, pls help, thx Link to comment Share on other sites More sharing options...
boen_robot Posted July 30, 2007 Share Posted July 30, 2007 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 More sharing options...
wchknight Posted July 31, 2007 Author Share Posted July 31, 2007 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 usingabc: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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.