[xml] Determing element namespace prefix



Hi,

Is there a straightforward way to determine if an element has a namespace prefix? For the following element:

<myns:Elem> some data </myns:Elem>

I would like to obtain the string "myns:Elem". xmlNode.name simply returns "Elem" and I can't find an obvious way to get to the "myns" part as well.

Thanks,
Aki



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]