Skip to Content
1
May 12, 2016 at 08:09 PM

Simple Transformation (Deserialization) - how to handle attributes with namespaces

698 Views

Hi all,

I am currently working on a simple transformation to deserialize an XML file.

The file is pretty straightforward but the root element is giving me problems because it has attributes with namespaces.

The lines below is similar to what I'm getting in the XML file.

<RootElement xmlns="http://www.website.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.website.com RootElement.xsd">

I tried copying the whole string in my simple transformation but it ends up skipping everything and if I remove any of the attributes, I end up with 'System expected {http://www.website.com}schemaLocation' error.

I tried searching online for any direction but I haven't found anything so far. It would really appreciate any direction to resolve this issue.


Thanks a lot,

Jeff