> I am trying to group and access no-SVG info in a svg <g> group. So, I am
> using a different name space name "xxx".

This can be generically labeled as "metadata", even when specified out
of the "metadata" element, which is part of the SVG specification. ;-)


> Here is the code
>
> var relacion=targetElement.getElementsByTagNameNS(xxx,"relations");
> alert(relacion[0].name);

There seem to exist several issues within the code snippet:
* Is your custom namespace declared in the toplevel SVG element? For example:

  <svg xmlns="http://www.w3.org/2000/svg";
xmlns:xxx="http://mydomain.com/myfolder/xxx/ns"; [...]


 * Is "xxx", first argument of getElementsByTagNameNS, an ECMAScript
holding your custom namespace? Using the above example:

  var xxx = "http://mydomain.com/myfolder/xxx/ns";;


 * I suggest using the item [1] interface to access specific items
within an item list. Using the array notation seems to work for most
implementations, but it doesn't seem to be the best
cross-implementation approach (AFAIK, at least some ASV versions [2]
and Renesis don't implement the array interface to the node list).
Rewrite suggestion:

  alert(relacion.item(0).name);


For more information I'd suggest a couple [3] [4] of appropriate links.

Hope this helps,

 Helder Magalhães


[1] http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-844377136
[2] 
http://blog.codedread.com/archives/2007/01/19/guide-to-deploying-svg-with-html/#nodelist
[3] http://developer.mozilla.org/En/SVG:Namespaces_Crash_Course
[4] http://wiki.svg.org/Namespace

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to