Multiple XML to merge
Hi,
which would be the best way to pick up multiple XML (from same XSD schema) and create a new one that merges all data? Is there a way to do "N to 1" XSLT transformation? Or using an xquery?
Thanks!
Rubens Amaral
You can use an XSLT with multiple inputs, the first input will become the normal input, the others will be parameters in the XSLT (xsl:param), which you can refer to using $name.
Whether to use XSLT or XQuery s a matter of personal preference, and possibly some transformations will be easier to write in one or the other.
Similar Messages
-
How to merge multiple XML or Text documents into 1 Word Document?
Hi all,
We're looking for a way to merge multiple XML or Text documents into 1 Word document.
All the XML or Text documents are oriented as a 'Paragraph', meaning smaller pieces of text.
By selecting some of these XML documents, the system should be able to create a new Word document with all the selected text paragraphs included.
The Word document can then be edited for applying a correct lay-out and the document is ready.
Actually, we are trying to do some kind of 'mail merge' but with multiple XML or Text documents!
Has anybody an idea whether something exist already or give us a direction how to proceed?
Thanks in advance,
Pascal DecockYou use Assembler for this purpose.
1) Assembler can be accessed through LC Java API. See http://help.adobe.com/en_US/enterpriseplatform/10.0/programLC/help/index.html
API Quick Starts (Code Examples) > Assembler Service API Quick Starts
2) Last week I posted on generating and merging PDF's from PostScript. Take a look at the assembly service instance in the .lca. Assembler uses DDX (Document Description XML) to describe document construction. NOTE the .lca was developed with ES 3 (aka ADEP). The .lca It contains the most basic DDX.
<?xml version="1.0" encoding="UTF-8"?>
<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<PDF result="out.pdf">
<PDF source="inDoc1"/>
<PDF source="inDoc2"/>
</PDF>
</DDX>
http://forums.adobe.com/message/4019760#4019760
DDX Reference at http://help.adobe.com/en_US/livecycle/9.0/ddxRef.pdf
Steve -
1 xml file to multiple xml files with 200 records in each
Hello Experts,
I have below scenario.
Please suggest me which might be the best approch to work on.
1) XML file to XML file
I will have 1 pretty huge XML file which i need to break in multiple XML files with 200 records each.
1) first approch i can have bpm in which i can split the file according to my requirement.
2) Second approch i can create 2 scenarios in which 1st scenario will pick up XML file and create multiple flat files with File content conversion. Second scenario will pick up all these flat files and create XML files.
2) XML file to XML file
Or i can have multiple files with 1 record per file and i need to merge in multiple XML files with 200 records in each.
So its kind of 1:N or M:N scenarios.
Please tell me which is might be better performance and design wise.
Or if you have any idea in any other way i can do this, then please reply as soon as possbile.
Please tell me if you have OS command for the same or some script to run or anything which i can implement.
Thanks,
Hetalwhat is your senario? is it File to File?
You can use multi mapping concept without BPM. You can handle the 200 records per message logic in the multimapping.
Regards,
Praveen Gujjeti. -
How to configure for Multiple XML
Hi,
We were successful in working with single xml as a input. Now we are using multiple xml as a input for a single transaction. With the references and the suggestion in documents(working with xml files.pdf) related to Documaker we have changed configuration settings in FSISYS.INI and AFGJOB.JDT.
Down below we have mentioned those changes.
Input Extract file has been changed as F_Sch.DAT; following is the content in the extract file
COM_LOB_1111 .\INPUT\F_SCH1.xml
COM_LOB_1111 .\INPUT\F_SCH2.xml
COM_LOB_1111 .\INPUT\F_SCH3.xml
F_SCH1.xml,F_SCH2.xml,F_SCH3.xml
<?xml version="1.0"?>
<global>
<lm>
<COM>COM</COM>
<LOB>LOB</LOB>
<TRANSACTIONID>121212</TRANSACTIONID>
</lm>
<Foodcard>
<Accname>Alex</Accname>
<Email>[email protected]</Email>
<Accid>1234123412341234</Accid>
<Accno>1234123412341234</Accno>
<Accaddr1>address1</Accaddr1>
<Accaddr2>address2</Accaddr2>
<Accaddr3>address3</Accaddr3>
</Foodcard>
</global>
Changes to FSISYS.INI
< ExtractKeyField >
Key = 1,3
SearchMask = 1,COM_LOB_1111
< TRN_FIELDS >
COM = 1,3,N
LOB = 5,3,N
PolicyNum = 9,3,N
< DATA >
ExtrFile = C:\FAP\DLL\Computer\INPUT\F_Sch.DAT
AFGJOB.JDT
;ImportXMLFile;2;SCH=1,COM_LOB_1111 15,19
Inspite of those changes that made, we were not able to generate the output using three xml as a input.
***error details.***
[04:16:29PM] Warning: Company - LOB - Transaction
[04:16:29PM] Warning: DM17115: : The DownLoadFAP option is set to Yes, this option should be set to No for optimal performance. Check the RunMode control group, DownLoadFAP option.
[04:16:29PM] Error: Company - LOB - Transaction
[04:16:29PM] Error: DM12041: : FAP library error: Transaction:<>, area:<DXMLoadXMLRecs>
code1:<48>, code2:<0>
msg:<XML Parse Error: The 1 chars before error=<C>, the 20 chars starting at error=< >>.
[04:16:29PM] Error: Company - LOB - Transaction
[04:16:29PM] Error: DM12041: : FAP library error: Transaction:<>, area:<DXMLoadXMLRecs>
code1:<48>, code2:<0>
msg:<syntax error at line 1 column 0>.
[04:16:29PM] Error: Company - LOB - Transaction
[04:16:29PM] Error: DM10292: in <RULXMLExtract()>: Unable to <DXMLoadXMLRecs()>.
[04:16:29PM] Warning: Company - LOB - Transaction
[04:16:29PM] Warning: DM13023: in RCBSendToErrBatch(): Unable to assign the transaction to the error batch. The SentToManualBatch field is not defined in the TrnDfdFile.
[04:16:29PM] Error: Company - LOB - Transaction
[04:16:29PM] Error: DM10947: in NoGenTrnTransactionProc(): Unable to RULLoadXtrRecs(pRPS).
[04:16:51PM] Error: Company - LOB - Transaction
[04:16:51PM] Error: DM12018: in RPDoBaseFormsetRulesForward(): Unable to <WINNOGENTRNTRANSACTIONPROC>().
[04:16:51PM] Error: Company - LOB - Transaction
[04:16:51PM] Error: DM12066: in RPProcessOneTransaction(): Unable to RPDoBaseFormsetRulesForward(pRPS, RP_PRE_PROC_A).
[04:16:51PM] Error: Company - LOB - Transaction
[04:16:51PM] Error: DM12064: in RPProcessTransactions(): Unable to RPProcessOneTransaction(pRPS). Skipping the rest of the transactions for this Base. See INI group:< GenDataStopOn > option:TransactionErrors.
[04:16:51PM] Error: Company - LOB - Transaction
[04:16:51PM] Error: DM12004: in RPProcessOneBase(): Unable to RPProcessTransactions(pRPS).
[04:16:51PM] Error: Company - LOB - Transaction
[04:16:51PM] Error: DM12001: in RPProcessBases(): Unable to RPProcessOneBase(pRPS). Skipping the rest of the Bases for this batch run. See INI group:< GenDataStopOn > option:BaseErrors.
[04:16:51PM] Error: Company - LOB - Transaction
[04:16:51PM] Error: DM12127: in RPRun(): Unable to RPProcessBases(pRPS).
[04:16:51PM] Error: An error occurred during processing.
Kindly let us know in case of any solution for this issue.
Regards,
Balaji R.It looks like it is unable to load your XML files. Depending on how your configuration is laid out, you may want to list full path names in your extract file - we make use of the same technique in 11.5, which I would imagine isn't terribly different in this respect from 12.0. Our configuration is such that we run Gendata at one level, read an extract file in the deflib folder, and the input files are in an input folder, so each entry in the extract file is C:\fap\mstrres\sampco\input\input1.xml.
Not sure if that is analogous to your setup or not, but based on the errors, either it can't find the file, so it is a pathing issue, or the file contents are invalid.
Tony -
HR - XI - External System: one IDOC to multiple XML Files
Hi,
I have a scenario where I need, out of one HRMD_A07 IDOC send multiple XML files:
The IDOC and the XML files can the Master data for many employee (IDOC has max of 200 as of SAP, external system, max of 1000).
The IDOC will be generated with change pointers with all the needed filters (I can add/remove if needed).
My goal is to generate 3 types of XML files:
- 1 for the persons (containing basic info like name, firstname, persnr,etc)
- 1 for the various unit (with basic info of unit like number, description & name)
- 1 for the links between persons and units (this person is linked with that unit)
The structures of the 3 XML files are know and can be imported via XSD definition.
Do I need to use BPM for doing so or is there a way to do that with simple mapping?
If BPM is needed, as I new to that, if you have a link to a begginer guide, fell free to send it
Cheers,
greghi,
For your scenario there is no need of BPM.
In message mapping select the message tag.
In the target add 3 message types.
Just map the fields.Go to Interface mapping add the 3 message in the target.
Get the mapping.
In ID sender agreement,Receiver Determination is same.
In Interface Determination select extended.Get the mapping.
Create 3 Receiver agreement for each Receiver.
Regards,
Prakasu -
How to parse multiple xml documents from single buffer
Hello,
I am trying to use jaxb 2.0 to parse a buffer which contains multiple xml documents. However, it seems that it is meant to only parse a single document at a time and throws an exception when it gets to the 2nd document.
Is there a way I can tell jaxb to only parse the first complete document and not fetch the next one out of the buffer? Or what is the most efficient way to separate the buffer into two documents without parsing it manually. If I have to search the buffer for the next document root and then split the buffer, it seems like that defeats the purpose of using jaxb as the parser.
I am using the Unmarshaller.unmarshall method and the exception I am getting is:
org.xml.sax.SAXParseException: Illegal character at end of document, <.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:315)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:476)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:198)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:167)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:184)
Thank you for your helpIt's just like any other XML parser, it's only designed to parse one XML document. If you have something that concatenates two XML documents together (that's what your "buffer" sounds like), then stop doing that.
-
Using URLLoader to send and load multiple xml nodes
I am trying to use the URLLoader class to send and load
multiple chunks of xml to a php script. Essentially I have the
following bit of XML:
<pages>
<page>page children here</page>
<page>more page children here</page>
<page>even more page children here</page>
</pages>
I'm using e4x to loop through the XML and isolate each page
node. I then want to send each node to a php script to be written
to a .xml file on the server.
I've tried inserting the URLLoader.load method within the
loop but it only sends the last iteration. Do I have to create a
new URLLoader instance for each iteration and if so is there a way
to dynamically set the instance names?
I'm new to 3.0 and have had success doing this in 2.0. I
mostly want to get it right and in good form.
Thanks for any help!The URLLoader class allows you to send and load data in the
same pass. As help suggests...sendToURL Sends a URL request to a
server, but ignores any response. To examine the server response,
use the URLLoader.load() method instead. The send and load works
fine, my issue is with needing to send multiple xml chunks using a
loop.
Here's the basics of the code I'm using. I was thinking that
the try{....} section could be put in a loop attempting to send
multiple items to the PHP page but only the last iteration is
actually sent. I know I'm making a fundamental error here but need
direction.
var urlLoader:URLLoader = new URLLoader();
urlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
urlLoader.addEventListener(Event.COMPLETE, handleComplete);
urlLoader.addEventListener(IOErrorEvent.IO_ERROR,
ioErrorHandler);
var variables:URLVariables = new URLVariables();
variables.xml = "<some_node>some
child</some_node>";
var request:URLRequest = new
URLRequest("sendAndLoadXML.php");
request.method = URLRequestMethod.POST;
request.data = variables;
for each(blah){
try {
sendToURL(request);
} catch (error:Error) {
trace(\n***\nUnable to load requested document." + error);
} -
Loading multiple XML files into one XMLList
I am working on an app where I will load a list of recipes. Each recipe is an XML file. I would have an XML file that lists the filenames that need to be loaded. I am assuming in can use one HTTPService and loop through this list, and set the url and do myService.send() until all the xml files have been loaded and concatenated into one xml list. True?
My main question here is how do I load each XML file and add it to the same XMLList?
Assume each XML file's root tag is <recipe>. I want to create an XMLList with the root <recipes> with each <recipe> as a first child.
Thanks.Why don't you use the Data centric workflows which will help you to deal with multiple XML files as AS objects? Something like this
1. Create a HTTPService using Data menu -> Connect to HTTPService
2. create a operation getRecipe and enter your URL example URL: http://myserver/recipe?name=recipename
3. Use Configure Return Type to tell that this method returns a Recipe class
4. Use DataBinding to bind the result of this to a DataGrid
Call the following in a loop and
recipeName = myRecipes+ // All of your recipe names, Recipe is a ArrayCollecition
Recipe.setAt(i) = Svc1.getRecipe(recipeName);
At the end you would have a Recipe[]
This is one of the ways you could work instead of having a XMLListCollection and use e4x etc. to go through your collection.
Let us know if this helps, or you are looking for something else.
Thanks
-Sunil -
Mapping multiple xml attachments
Dear all,
We have a scenario where we receive multiple xml messages in a zip file. It is possible to unzip this file using the standard PayloadZipBean, and the xml messages are added as attachments to my PI message.
Now I want to map each attachment to a target message. What is the best way to achieve this?
I have seen this thread for accessing the attachments in the graphical map:
/people/yugapreetha.t/blog/2009/08/24/read-the-attachments-of-the-input-xi-message-in-the-message-mapping
However, should I develop an additional UDF for parsing the data? How can I achieve this?
Any suggestions?
Regards,
Rudy> Each xml attachment should result in one service call.
In that case I recommend to unzip the file with an OS command and process the XML files individually.
But when you say, you have a sync call, what do you want to do with the response message? -
Link multiple XML files stored in oracle database
Link multiple XML files
Can any one give some code example regarding my issue:
If I have for example file1.xml stored in one relational table and another file2.xml stored in another table ….etc
And I want to put link and reference which will make me able to link these files and make query or insert…etc
May be I need to use Xlink, Xpoiner or Xinclude . But if this is the solution to this problem please can you give a simple example that will help to understand the solution especially that I want to develop my project in oracle and I will register xml schema to insert the xml files in the database
Thanks lots and I am waiting for your solutionno answer for my question
is this thread is a write place or I have to move my query to another part of the forum
thanks -
Multiple XML import into one PDF
I want to import multiple xml files into my form at one time resulting in one pdf with each page repeating with each set of data. Is there a way to do this?.
Hi,
You can use loadXML method to load necessary XMLs, after that you have parse it, take data, and set it to correspondent fields.
You can check this links, maybe it will be helpfull:
http://forums.adobe.com/thread/333519
http://livedocs.adobe.com/livecycle/8.2/acrobat_designer/wwhelp/wwhimpl/common/html/wwhelp .htm?context=Adobe_LiveCycle_Designer_Help&file=001719.html
BR,
Paul Butenko -
I'm doing a multiple record data merge, I have 2 frames both with variable data placed inside.
I would like to specify that one of the text frames only merges once(first record) and the other frame multiple times for each record in the data file.
Is it possible?
I thought that perhaps if I place the text frame that must merge once on the master page, it would work. But you are not allowed to place variable text on the master and on the document page.
I'm going to try it through scripting next, but thought that perhaps there is an easier way that I'm not aware of.
Thanks,
SuzanneSuzanne,
If you were trying to post a screen shot, you would need to return to the forum and post it using the "camera" icon at the top of the post editing windows.
I use a plug-in from Em Software called InData. One of the benefits for what I do is there are no individual frames on a page to deal with post-merge. Individual frames are great for simple merges (address labels, post cards, etc.). But I typically do more other types of merges.
That said, there is a drawback--one needs to come to an understanding of writing expressions that actually parse the incoming data. So in the spice price list example, that looks like:
It's reasonably easy once one does it a few times. And it can be far more complicated. The above is from Em Software's samples that has been tweaked. The best thing I can recommend would be to download the trial and see for yourself. They are good at responding to specific questions if you get stumped.
I imagine this all could be scripted somehow in ID. But I have no idea how and the plug-in just lets me keep working.
Mike -
Validate XML with multiple XML Sechme in the same namespace
In my program, i use multiple xml schemas to validate against my xml files.
However, i found the following code do not work because all schemas in the same namespace.
Does any one have some solutions to validate multiple XML Schemas in the same namespace?
Thanks~~
static final String[] schemas = { partyInformationSchema,
itemInformationSchema,
exceptionsSchema,
salesForecastSchema,
exceptionCriteriaSchema };
factory.setAttribute(JAXP_SCHEMA_SOURCE, schemas);I have used the Object arrsy too, but it didn't work.
static final Object[] schemas = { partyInformationSchema,
itemInformationSchema,
exceptionsSchema,
salesForecastSchema,
exceptionCriteriaSchema }; -
Solution need for multiple xml and Flowlist component
Hi! I am using multiple xml and AFComponents AS3 Flowlist component. I am having an issue with the thumbnails in the Flowlist component after about 20 or so user clicks, the images no longer appear, yet the threaded data is still there. http://www.littlewinggames.com/
I have tried changing some publish settings: hardware acceleration to Level-1 Direct and script time limit increased to 30???
Can anyone please help me to find a solution? Greatly appreciated! Lisa [email protected]Ben,
Normally when you have multiple cameras you would log into the web interface and change the http port of at least one of them. The default port is 80. We normally would change one camera to use http port 1024 and the second 1025. Then you simply forward port 1024 to the first camera and 1025 to the second in the router. Just remember that when you attempt to access the cameras after you change the port it will look like this: :1024">http://:1024 (locally and remotely) Please reply if you have further questions. -
Hi
I want to create multiple XML datasets on one page. For
example: 2 queries (php,mysql), 2 results. Then on the page where
you define the datasets you normally add this:
<script type="text/javascript">
<!--
var dsEmployees = new Spry.Data.XMLDataSet("export.php",
"company/employee");
//-->
</script>
Now, this works perfectly, but how can i add multiple
datasets, for example:
<script type="text/javascript">
<!--
var dsEmployees = new Spry.Data.XMLDataSet("export.php",
"company/employee");
var dsEmployees2 = new Spry.Data.XMLDataSet("export.php",
"company2/employee2");
//-->
Once i add the second dataset, only the first one displays.
Anybody have any ideas?
Thanks
</script>Ok, here is the code that gets the data and exports it to
XML:
Query 1:
=============================
mysql_select_db($database_conn_export, $conn_export);
$query_rsEmployees = "SELECT * FROM employees_emp";
$rsEmployees = mysql_query($query_rsEmployees, $conn_export)
or die(mysql_error());
$row_rsEmployees = mysql_fetch_assoc($rsEmployees);
$totalRows_rsEmployees = mysql_num_rows($rsEmployees);
// Begin XMLExport rsEmployees
$xmlExportObj = new XMLExport();
$xmlExportObj->setRecordset($rsEmployees);
$xmlExportObj->addColumn("firstname_emp", "firstname");
$xmlExportObj->addColumn("lastname_emp", "lastname");
$xmlExportObj->addColumn("address_emp", "address");
$xmlExportObj->addColumn("salary_emp", "salary");
$xmlExportObj->setMaxRecords("ALL");
$xmlExportObj->setDBEncoding("ISO-8859-1");
$xmlExportObj->setXMLEncoding("ISO-8859-1");
$xmlExportObj->setXMLFormat("NODES");
$xmlExportObj->setRootNode("company");
$xmlExportObj->setRowNode("employee");
$xmlExportObj->Execute();
// End XMLExport rsEmployees
=============================
Query 2:
=============================
=============================
mysql_select_db($database_data_one, $data_one);
$query_mem_details = "SELECT * FROM wherever where
mem='$mem_number'";
$mem_details = mysql_query($query_mem_details, $data_one) or
die(mysql_error());
$row_mem_details = mysql_fetch_assoc($mem_details);
$totalRows_mem_details = mysql_num_rows($mem_details);
// Begin XMLExport Member Details
$xmlExportObj = new XMLExport();
$xmlExportObj->setRecordset($mem_details);
$xmlExportObj->addColumn("firstname", "firstname");
$xmlExportObj->addColumn("lastname", "lastname");
$xmlExportObj->setMaxRecords("ALL");
$xmlExportObj->setDBEncoding("ISO-8859-1");
$xmlExportObj->setXMLEncoding("ISO-8859-1");
$xmlExportObj->setXMLFormat("NODES");
$xmlExportObj->setRootNode("Member");
$xmlExportObj->setRowNode("Details");
$xmlExportObj->Execute();
// End XMLExport Member Details
=============================
And here is the page that calls these two datasets:
<script type="text/javascript">
<!--
var dsEmployees = new Spry.Data.XMLDataSet("export.php",
"company/employee");
var mem_details = new Spry.Data.XMLDataSet("export.php",
"Member/Details");
//-->
And only the first one appears.
</script>
Maybe you are looking for
-
How do I convert a pdf file to photoshop?
how do I convert a pdf file to photoshop?
-
Oracle Patch installation (p9604396_813FP3_Generic)
p9604396_813FP3_Generic patch which relesed 1 week ago, when i apply this patch i faced problem like unable to login in to cca it gives error of version. Following Error i use to get: "An error occurred while launching/running the application. Title:
-
I have MacBook Pro with Maverick 10.9.4 -- with 427.03 GB free-- 4 GB memory-- 2.4 GHz-- Bus Speed--800 MHz-- iPhoto version 9.5.1 In trying to send a iPhoto a box pops in with The email server didn't recognize your username/password combination
-
Hi all ill explain detail my situation In my forms my menu contain icons like new(+),save,e.t.c. when I click on new(+) icon one additional record comes for inserting But i don't want it. I tried to know the trigger fired for adding record to disabli
-
Hi All, I facing problem in displaying the log message. Here is what I am doing. I have created a RDF Report, In that In Before Report Trigger I have called Packaged.Procedure. (Packaged.Procedure has all code that is needed. I have used the fnd_fil