I’m trying to make a configuration that allows for convenient building of “Cloze passages”, which are essentially fill-in-the-blanks exercises like this:
The quick ______ jumped over the ______ … Or in XML: <clozepassage><p>The quick <clozeword/> jumped over the <clozeword>…. </p></clozepassage> I want to have a command button after the <clozepassage> that adds a <clozeword/> at the end (but inside the <p>), unless the last node is already a <clozeword/>. I am just running into a little trouble since I need to select the last node that’s a descendant of <clozepassage>. Not last child, which would be the <p>, but the text node that’s “…” in this example. There might be more structure in the way – it could be multiple paragraphs, or a list with list items instead of a paragraph, for instance. I don’t see how to do this with selectNode, or what alternative methods there might be? Thanks! Boris
-- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support