Loading multiple documents in one XML

Hi
I’m trying to load multiple documents in a sigle XML file
The xml looks like:
[color=“green”]

<?xml version="1.0" encoding="ISO-8859-1" ?>

<ino:request xmlns:ino=“http://namespaces.softwareag.com/tamino/response2”>
ino:object

Me
13


You
12

</ino:object>
</ino:request>
[/color]

But with interactive interface I have the error:

<ino:message ino:returnvalue=“8738”>
<ino:messagetext ino:code=“INOXPE8738”>Only a single document may be processed.</ino:messagetext>
ino:messagelineLine 6, Column 38: Only a single document may be changed.</ino:messageline>
</ino:message>

What can I do to upload the data?
Yours
Joe

Hi Joe,

Have you tried the Tamino Data Loader, inoload?

Start the Data Loader via the command line:

At the prompt, enter the command in the following format:

inoload -database my-database -user [userid]
-collection Hospital/patient -input abc.xml -norejects -log xyz.xml

The documents contained in the file abc.xml are loaded into Tamino.

Rob

Thanks Rob, but I have the same error, now in the xml log file
Apparently the only way is to change the xml to something like:

[color=“green”]

<?xml version="1.0" encoding="ISO-8859-1" ?>

<ino:request xmlns:ino=“http://namespaces.softwareag.com/tamino/response2”>
ino:object

Me
13

</ino:object>
ino:object

You
12

</ino:object>
</ino:request>

[/color]

Does anybody know another way??
Your
Joe

Hi,

  1. now the format is correct. If you put multiple XML documents into one file, you have o warp each one ino the ino:object tag. The reason is that XMl allows comments and processing instructions before and after the root element, and thus wrapping is the only means to know which of these belong to which document.

  2. the Tamino data loader also supports loading of multiple XML documents at a time if these are in a separate file per XML document

Regards

Harald