Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   Altova Mapforce - xml 2 xml map: empty elements output although input element is not empty (http://www.velocityreviews.com/forums/t170160-altova-mapforce-xml-2-xml-map-empty-elements-output-although-input-element-is-not-empty.html)

Lukas 11-10-2005 11:10 AM

Altova Mapforce - xml 2 xml map: empty elements output although input element is not empty
 
title:
xml to xml mapping: empty elements output although input element is not
empty


Why is is that when mapping from a XML schema to another XML schema,
when drawing a default connection like this:

>| |> >| |>
>| super-source-element |>---------->| super-target-element |>
>| source-element |>---------->| target-element |>
>| |> >| |>


the result in the output tab is:

<super-target-element>
<target-element />
</super-target-element>

Please note that the target-element is EMPTY, although in the
input-file that I've set up for the source-schema there is content in
the source element:

<source-element>STUFF</source-element>

I've found that I can force the content to be transferred like so:

_______________
>| |> | filter | >| |>
>| |> |_______________| >| |>
>| s-element |>-------------->|node/row| | |->| t-element |>
>| |> _______ |________| | | >| |>
>| |> |C= true|>-->|bool |result|>-| >| |>
>| |> |______ | |________|______| >| |>


producing in the Output tab:

<super-target-element>
<target-element>STUFF</target-element>
</super-target-element>

... but I can't imagine that I'm meant to insert a Nodes/Rows filter for
EVERY SINGLE xml element that I want to map.

What's up with that?


spiff 11-10-2005 11:25 AM

Re: Altova Mapforce - xml 2 xml map: empty elements output although input element is not empty
 
Hi Lukas,

this is working for me if I try the PersonList.mfd sample. Did you try
this also?

Regards


Lukas 11-10-2005 02:08 PM

Re: Altova Mapforce - xml 2 xml map: empty elements output although input element is not empty
 
Hi Spiff,

I just had a look at that mapping and found that the crucial difference
between the PersonList example and my mapping was that the schema on
the left hand side in PersonList defines all the mapped simple types
(xs:string) while mine didn't (xs:all).

The absence of a defined simple type apparently keeps Mapforce from
mapping the content. Easy to fix now.

Thanks!

Lukas


spiff 11-10-2005 02:25 PM

Re: Altova Mapforce - xml 2 xml map: empty elements output although input element is not empty
 
Good news :-)



All times are GMT. The time now is 07:15 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57