2010/1/3 Emmanuel Rodriguez <[email protected]>

>
>
> On Sun, Jan 3, 2010 at 9:16 PM, Andreas Wagner 
> <[email protected]>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
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to