[xml] Fwd: Determing element namespace prefix
- From: "Akarsha Kumar" <akikumar gmail com>
- To: xml gnome org
- Subject: [xml] Fwd: Determing element namespace prefix
- Date: Fri, 5 Jan 2007 16:02:36 -0800
Hi,
I had sent the message forwarded below to the list a few days ago. I am looking for a way to obtain namespace prefixes in element names.
Any help in this matter would be greatly appreciated.
Thanks,
Aki
---------- Forwarded message ----------
From: Akarsha Kumar <akikumar gmail com>
Date: Jan 2, 2007 3:41 PM
Subject: Determing element namespace prefix
To: xml gnome org
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]