This is my markup:
I am only interested in capturing the text "some text here", ie all text that comes before any of the children of <sim>
I think <titlepg> is always the first child so I can have it stop there
Can this be done in XPATH?
Lynn, you're right, I just wanted to capture the Chapter Title and "SUPPORTING INFORMATION" so I could check the length for PDF bookmarks because there seems to be a character limit on the bookmarks and some of the titles are too long. (Actually I should have been testing a <mim>, the <sim> length is OK.) You're also right it's generated text so XPATh doesn't work. Oh well!