|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Converting Single XML into multiple XML Documents
Hi,
I have a xml structure which has to be seperated into 2 or more xml documents. The original xml structure looks like this,
Now, the above request(xml) contains two requests 1. one from Austin to Florida 2. second from Florida to Austin 3. The third child <SpecialRequests> actually, applies to both the trips. I want the output to be like this, first, xml structure for Austin to Florida trip including special requests, like this... <FlightAvailability> <RequestedSegment> <OriginTravelServiceLocation> <Code stringValue="Austin"/> </OriginTravelServiceLocation> <DestinationTravelServiceLocation> <Code stringValue="Florida"/> </DestinationTravelServiceLocation> </RequestedSegment> <SpecialRequests> <Meals stringValue="VEG"/> <Seat Preference stringValue="window"/> </TripConstraints> </FlightAvailability> second, xml structure for Florida to Austin trip including special requests, like this... <FlightAvailability> <RequestedSegment> <OriginTravelServiceLocation> <Code stringValue="Florida"/> </OriginTravelServiceLocation> <DestinationTravelServiceLocation> <Code stringValue="Austin"/> </DestinationTravelServiceLocation> </RequestedSegment> <SpecialRequests> <Meals stringValue="VEG"/> <Seat Preference stringValue="window"/> </TripConstraints> </FlightAvailability> How do I do this, any help will be really appreciated. Thanks Sanjeev
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








