IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: gcoban
About
User Name: gcoban
Forum Rank: Newbie
Real Name:
Location Germany
Occupation:
Interests:
Gender: Male
Statistics
Joined: Thursday, September 19, 2013
Last Visit: Tuesday, May 19, 2015 7:01:23 AM
Number of Posts: 5
[0.03% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: c# Need help to map source file from a string variable!!!
Posted: Wednesday, March 26, 2014 11:42:08 AM
Does anyone have an idea please?

regards
Topic: c# Need help to map source file from a string variable!!!
Posted: Wednesday, March 5, 2014 4:32:13 PM
Hi all,

Altova.IO.Input inputxml = new Altova.IO.StringInput(sb.ToString());
MappingMapToInhouseX2I_D07_D17Object.Run(inputxml, InhouseX2I_D07_D172Target);

I got a errror:
An empty path is illegal.

Someone has an idea!!!!!

regards
Cobi

Topic: String variable output not a file...
Posted: Wednesday, February 5, 2014 10:33:08 AM
I have found a solution!

StringBuilder sb = new StringBuilder();
Altova.IO.Output output = new Altova.IO.StringOutput(sb);

MappingMapToebIX_DK_RequestChangeOfSupplier_1Object.Run(Inhouse_392_E032Source, output);

Console.WriteLine(output.Writer.ToString());

regards
cobi
Topic: String variable output not a file...
Posted: Tuesday, February 4, 2014 1:37:58 PM
Hello,
can any body tell me how can i save directly in the output string variable in c# code?

Altova.IO.Input Inhouse_392_E052Source = Altova.IO.StreamInput.createInput("c:\test.in");
MappingMapToebIX_DK_RequestCancelChangeOfSupplier_1Object.Run(Inhouse_392_E052Source, sOut);
Console.WriteLine(sOut);


For a suggested solution, I would be very grateful.

For better undestanding this code java must converted to c#!!!
// mapping from String to (another) String

String blah = "<here>is some xml text</here>";

Input input = new StringInput(blah);
Output output = new StringOutput();

MappingMapToBlah.run(input, output);

String myTargetData = output.getString().toString();


Thx
cobi
Topic: Whole XML source content to Flextext field!!!
Posted: Thursday, October 10, 2013 1:20:19 PM
Hi all,
it's posible to transfer whole XML as string in Source to Flextext string field?

Sample input: xml
<note>
<to>Tove</to>
<from>Jani</from>
<headingheading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>


Sample out: txt
100,
<note>
<to>Tove</to>
<from>Jani</from>
<headingheading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>

the root from XML get the source filename self!
But i need the content in the XML source file.


It's crazy but that is the practice!!!

regards.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.