Skip to main content
Participant
July 30, 2013
Question

XML tags with Namespaces

  • July 30, 2013
  • 1 reply
  • 563 views

Hi,

I am trying to build XML objects with Javascript. It all goes OK, but when I try to create a new XML object from a string whose XML tag contains a colon (as it uses namespaces) in a way like "<tag:something>...</tag:something>, ExtendScript outputs an XML error for that line (like the XML code in that string is wrong).

Anyone knows how to overcome this and be able to both read/build/append XML objects with tags that use namespaces.

(Moreover: if the XML I am trying to read has an xmlns attribute in the root node, it also provides an error).

THANKS.

This topic has been closed for replies.

1 reply

Participating Frequently
July 31, 2013

In xpath u give something not tag:something and try