473,585 Members | 2,657 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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?

Nov 10 '05 #1
3 4493
Hi Lukas,

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

Regards

Nov 10 '05 #2
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

Nov 10 '05 #3
Good news :-)

Nov 10 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1552
by: Michael Herman \(Parallelspace\) | last post by:
Suppose I have two RDF files (and corresponding RDF Schema files) that are used to store calendar appointment information using different (RDF) schemas. Can Altova mapforce (http://www.altova.com/products_mapforce.html) be used to map the appointment fields in one RDF file to the fields in the second? To do this, how do I create the XSD...
18
2453
by: Neal | last post by:
According to the specs (http://www.w3.org/TR/html401/struct/links.html#h-12.2), the <a> element requires an end tag. And so, when we use <A NAME="foo"> in HTML 2.0 to 4.01, it won't validate, it'll want to find the </A> tag. However, when I write a document containing, say, <a name="foo" /> it validates in XHTML 1.0. I'm obviously...
8
2030
by: Leon Mergen | last post by:
Hello, I'm currently trying to fix a somewhat weird map problem, and after 4 hours of debugging I'm having trouble convincing myself that it really is a problem with my code, rather than some external problem... Anyway, this is the code snippet that's giving problems: 147 void AdProxy::addCampaign ( CampaignProxy * campaign ) { 148 ...
7
2220
by: lukaslatz | last post by:
Hi group I'm fed up with the Altova Mapforce user forum because posts go missing and it's slow. Is there a group especially for vendor-specific topics/issues or are these things ok in comp.text.xml ? Cheers Lukas
11
5047
by: Lukas | last post by:
Hi Group, In Mapforce 2005 R3, when mapping to CSV with the "First row contains field names" option UN-checked on the CSV target component settings, the characters (hex) FF FE FF FE are inserted in the beginning of the first line when running Java code autogenerated by Mapforce. In the output tab of the Mapforce application, this problem...
30
3290
by: Raymond Hettinger | last post by:
Proposal -------- I am gathering data to evaluate a request for an alternate version of itertools.izip() with a None fill-in feature like that for the built-in map() function: >>> map(None, 'abc', '12345') # demonstrate map's None fill-in feature The motivation is to provide a means for looping over all data elements
1
1204
by: announce | last post by:
Hi there! This is just a quick not to announce availability of Altova's 2008 product line, which includes C# code gen and Visual Studio integration in multiple tools. A few new features in v2008 are: New features include:
0
1849
by: announce | last post by:
This is just a quick note to announce availability of Altova's 2008 XML product line, which includes C# code gen and Visual Studio integration in multiple tools. A few new features in v2008 are: - Support for working with Open XML / Microsoft Office 2007 formats in XMLSpy - Direct database querying and editing in XMLSpy
1
1360
by: announce | last post by:
Greetings! Just a brief note to let you know about Release 2 of Altova's v2008 product line. From very large file support, to new functionality for working with OOXML and more, a few of the new features are: * Very large file support in XMLSpy XML editor * Support for Java, C#, JavaScript & VBScript in the XSLT engines in XMLSpy *...
0
7836
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8336
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5389
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.