on 09-21-2006 5:44 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.