In article <11*********************@z14g2000cwz.googlegroups. com>,
<ta******@ecoaches.com> wrote:
1 - Can an element have some innerText as well as child nodes?
ie: <myel>some inner text here... <subel/></myel>
is it allowed?
"innerText" suggests that you are using some system I'm not familiar
with, but as far as XML is concerned you can certainly mix text and
elements. Just think of (X)HTML: <p>Some <b>bold</b> text.</p>
2 - I have a file element... <file src="/Images/spacer.gif" />. I want
to select it...
myfile.selectSingleNode(File[@src='/Images/spacer.gif'])
the problem is, on windows, file names can be any case...
/IMAGES/SPACER.GIF would also be valid, but it would not select that
node. How do i deal with this?
Well, I'd start by not using Windows, but you might also find the
translate() function useful:
File[translate(@src, "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
"abcdefghijklmnopqrstuvwxyz") = '/images/spacer.gif']
This will not of course work for non-English characters, but you don't
seem to have any of them.
-- Richard