Re: [xml] namespace problem
- From: Andreas Wagner <andreaswagner7 gmail com>
- To: xml gnome org
- Subject: Re: [xml] namespace problem
- Date: Mon, 4 Jan 2010 00:06:50 +0100
2010/1/3 Emmanuel Rodriguez
<emmanuel rodriguez gmail com>
On Sun, Jan 3, 2010 at 9:16 PM, Andreas Wagner
<andreaswagner7 gmail com> wrote:
Hi Emmanuel,
thx for ur answer, but it is still the same problem. I must be in the right node (correct line), but i do not get the attributes :-(
Sorry I read your first mail too fast and focused only on the namespace and not on the node!
You need to use the URI for nodes that use a namespace. In your case only some elements use namespaces but the attributes don't. Since the attributes have no namespace you will need to use another function. Try to use xmlGetNoNsProp() or xmlGetProp().
--
Emmanuel Rodriguez
No problem, but i tried the other functions and i just get NULL. Maybe its a problem that i work with eclipse under Windows and a static lib. I get one warning when i compile my program (but that should just be the xmlfree() function). Tomorrow i will try VC 2008.
So i have another question. what shall happen when the current node (cur) is a node in this namespace and i say: cout << cur->nsDef->prefix << endl; (i expect that the output is the prefix?? or??) My application crashes. And i do not know if it is my mistake or a mistake of the enviroment.
andreas
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]