|
|
Gieke <someone@xxxxxxxxxxx> wrote in
<4888983e$0$1604$6c56d894@xxxxxxxxxxxxxxxxxxxxxxxxxxx>:
> It's about repeating a tag within a tag that contains also
> other things. an example to make it clear:
>
> <basicFlightInfo>
> <flightDetails>
> <departureDate>011008</departureDate>
> <departureTime>0834</departureTime>
> </flightDetails>
> <departureLocation>
> <cityAirport>ZWE</cityAirport>
> </departureLocation>
> <productTypeDetail>D</productTypeDetail>
> <productTypeDetail>702</productTypeDetail>
> <productTypeDetail>ET</productTypeDetail>
> </basicFlightInfo>
>
> Is it allowed to repeat the <productTypeDetail> ?
It is definitely allowed.
> Would it be better to nest it in another tag, like :
> <details>
> <productTypeDetail>D</productTypeDetail>
> <productTypeDetail>702</productTypeDetail>
> <productTypeDetail>ET</productTypeDetail>
> </details>
>
> Or is it necessary to do so ?
This is by no means necessary, but a good practice in my
opinion. Well-structured documents are much easier to
process.
--
Waterfall - One Process To Rule Them All
|
|