0 Replies Latest reply on Jun 24, 2008 7:59 PM by Jeff Sese

    Getting Namespace Declarations Of an Imported XML [IDCS3]

    Jeff Sese Level 1

      I'm working on an XML workflow, wherein a number of namespaces where declared in the imported XML file. Now I'm creating a script that uses XMLRules and the in order for me to process elements that has a namespace prefix (I throws an error), I need to add an array of prefixMapping in the creation of the xmlRulesProcessor. Currently, I'm hardcoding the prefix mapping in the script because I can't find a way to gather the namespaces in scope in a particular xml element using the xmlElement object.

      I'm thinking of using the XML object to get namespace declaration using the namespaceDeclarations() method, but how can I create an XML object using an xmlElement object?

      Thanks in advance.

      -- Jeff