How to avoid copy namespaces

Home Page Forums BizTalk 2004 – BizTalk 2010 How to avoid copy namespaces

Viewing 1 reply thread
  • Author
    Posts
    • #25740

      Hello.

      I have a source schema with lots of fields and in the middle some fields are unbounded. I build a new destination schema with the same structure as the source schema but this included just the unbounded field. So I don’t have the other fields before and after.

      Each schema has its own targetNamespace.

      Now I use the “Mass Copy” functoid to move all the values from the source schema to the destination schema. It worked fine so far.

      The issue I have is, that in the destination schema with the unbounded fields the nodes include now the targetNamespace of source schema. This comes from the Mass Copy, because in the source schema these fields are not filled with the targetNamespace. Both schemas have one targetNamespace only.

      Source Schema ———————————– Destination Schema
      record node ———————————– record node
      — field 1
      — field 2
      — field 3
      — fields ———— mass copy ———— fields
      —— fields1
      —— fields2

      Here I copy fields, fields1, fields2,… and so on to the destination schema.

      But in the XML Document from the destination schema by the node called fields is written “fields xmlns:ns0=”http://sourceschema.de/blabla

      Is there a way to avoid that the xmlns:ns0=”http://sourceschema.de/blabla” is not in the destination schema?

       Thanks in advance.

      Wolfgang

    • #25746

      Hi Wolfgang,

       

         There’s an alternative to the mass copy functoid detailed in the following blog:

      http://connectedpawns.wordpress.com/2009/08/01/how-to-copy-the-entire-node-to-element-of-string-type-in-a-map/

       

         See if that’s something that can work for you,

       

         Daniel.

       

      • #25753

        Hi Daniel.

        Yes, this is what I’m looking for. Great – I will check it out.

        Thanks a lot.

        Wolfgang

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.