Skip to content
Prev 70749 / 398525 Next

xmlAttrs and problems with reading node attributes of XML file (b ug?)

Duncan,

Thanks, that that make sense, I have never encountered namespaces so I did
not recognized them. So in my example xmlns="a" xmlns:xsi="b" are namespace
variables, and xsi:schemaLocation="c" is a "Schema-Related Markup"
attribute. This last one seemed to be handled strangely, since it is listed
as attribute but its name got truncated from "xsi:schemaLocation" to
"schemaLocation".

Jarek



-----Original Message-----
From: Duncan Temple Lang [mailto:duncan at wald.ucdavis.edu] 
Sent: Tuesday, May 31, 2005 11:38 AM
To: Tuszynski, Jaroslaw W.
Cc: (r-help at stat.math.ethz.ch.); 'duncan at research.bell-labs.com'
Subject: Re: [R] xmlAttrs and problems with reading node attributes of XML
file (b ug?)


Hi Jarek.

Is the problem you are referring to simply that the xmlns="a" and
xmlns:xsi="b" are not appearing when your handler prints the attributes?  If
it is this the case, the explanation is quite simple - they are namespace
definitions, not attributes.
They are in the node object

    x$namespaceDefinitions


names(unclass(x)) will help to see what is in the node.

HTH,
  D.
Tuszynski, Jaroslaw W. wrote: