Hi,
I have a requirement to generate Xml which has to match Xml generated
by a J2ee system, requirement is as follows,
public class Person
{
public VehicleSet aSetOfVehicles;
}
public class VehicleSet
{
[XmlArrayItem(El ementName="Car" ,Type = typeof(Car))]
[XmlArray("VehLi st")]
public IList Vehicles {...}
......
}
THe xml that gets generated by .Net version is as follows,
<Person>
<aSetOfVehicles >
<VehList>
<Car></Car>...
I Donot want to put element VehList (J2ee xml doesnot have it),
It should be,
<Person>
<aSetOfVehicles >
<Car></Car>...
How can we achieve this goal?
Mehul
I have a requirement to generate Xml which has to match Xml generated
by a J2ee system, requirement is as follows,
public class Person
{
public VehicleSet aSetOfVehicles;
}
public class VehicleSet
{
[XmlArrayItem(El ementName="Car" ,Type = typeof(Car))]
[XmlArray("VehLi st")]
public IList Vehicles {...}
......
}
THe xml that gets generated by .Net version is as follows,
<Person>
<aSetOfVehicles >
<VehList>
<Car></Car>...
I Donot want to put element VehList (J2ee xml doesnot have it),
It should be,
<Person>
<aSetOfVehicles >
<Car></Car>...
How can we achieve this goal?
Mehul