cancel
Showing results for 
Search instead for 
Did you mean: 

File Multiple XML

Former Member
0 Kudos

Hi,

We have an scenario with a File Adapter. The structure of file is the next

label.

¿It is possible read a XML file with multiple XML message with a file adapter?

Regards

Javier López

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

thanks all for your response.

Ok, an XML message can have only one root node, but in XI,

Is it possible read a file with more than one root node?

Thanks all

Javier López

Former Member
0 Kudos

Hi Javier ,

In XI , every thing is xml based . So the properties of xml message applies to other messages as well. There could be only root node and many child nodes.

The following is the standard rule for xml messages

"All XML documents must contain a single tag pair to define a root element"

Let me know if this helps.

Rgds,

Senthil.

agasthuri_doss
Active Contributor
0 Kudos

Hi Javier López,

In XML only One root is poosible, If you like to have more then go for couple of Child node and put it into one main root node.

Thanks & Regards

Agasthuri Doss

former_member206604
Active Contributor
0 Kudos

Hi,

In your case you need to do something like this

<?xml version="1.0" encoding="UTF-8"?>

<records>

<cXML payloadID="1152113522246-6339827769830085064@216.109.111.113" timestamp="2006-07-05T08:32:02-07:00" xml:lang="es-ES">

....

</cXML>

<cXML payloadID="1152122189025-3357238646311700870@216.109.111.119" timestamp="2006-07-05T10:56:29-07:00" xml:lang="es-ES">

....

</cXML>

</records>

Thanks,

Prakash

agasthuri_doss
Active Contributor
0 Kudos

Hi Javier,

Try to go for XSD, If we use DTD we cannot re use it and type specific.

The XML from XI try to down load it and save it in your local machine. The file will bein the mode of XML and try to open with Explorer. Are you able to view the first XML.

Thanks & Regards

Agasthuri Doss

former_member206604
Active Contributor
0 Kudos

Hi,

First try to open the XML is the internet explorer and is that file. Actiually XML can have only one root node.

This is valid

<root>

<msg>

</msg>

<msg>

</msg>

</root>

But not this

<msg>

</msg>

<msg>

</msg>

Thanks,

Prakash