Absolutely true, and it has to be set up that way for the XML document 
to be parsed on the receiving end (at least if you're using any standard 
XML parser).

But there are other alternatives. For instance, it /is/ possible to use 
a dummy wrapper element (say "Invoices"), and then stream out the 
individual Invoice items. What is it you want to accomplish with your 
XML format?

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Serkan Camurcuoglu wrote:
> each xml document should have a root node, this is not valid xml..
>
>
> gka wrote:
>   
>> Hi 
>> i would like to construct a XML using jibx. The XMl should be like this 
>>
>> <Invoice> 
>> <Invoice Header></Invoice Header> 
>> <Invoice Details></Invoice Details> 
>> </Invoice> 
>> <Invoice> 
>> <Invoice Header></Invoice Header> 
>> <Invoice Details></Invoice Details> 
>> </Invoice> 
>> <Invoice> 
>> <Invoice Header></Invoice Header> 
>> <Invoice Details></Invoice Details> 
>> </Invoice> 
>>
>> How can i write a jibx Binding xml file for this type XML? If you look at
>> the XML file you will see that there isnt any parent node. You will have
>> only many child nodes <Invoice> in the form of collections. Any help is
>> greatly appreciated. 
>>
>> GK 
>>
>>
>>
>>   
>>     
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> jibx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>   

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to