4.7 ??????????? ???????? ? ????
???? XML-????? ???????????? ??????????? ?????????????? ?????? ????????????? ????????? ??? ?????. ???? ??????? ??? ??? ????????? "????????????", ?? ??? ?? ????? ?????????????? ? ?????????. ????? ??????????? ??????????? ???????, ?? ? ????????? ?????? ?????????????? ????????, ???????? ? ??? ?????? ??????. ???? ??????? ???????????????? ???? ???????? ???????????, ?? ??? ?????????? ????? ???????? ?????? ???????????? xsi:type ??? ???????? ???????????? ????, ??????? ?? ???????? ???????????.
? ??????? ?????? ??????, ????????? ? ?????????? 4.6, ???????? ????????????? ???????? comment ???, ????? ? ?????????? ????? ???? ???????????? ?????? ???????? customerComment ? shipComment. ??? ????? ??????? ??????? comment ???????????, ? ??????? ??? ?????????????? ?????????? ? ????? ?????????????? ?????? ?? ???????, ipo.xsd, ????????? ???????:
< element name="comment" type="string" abstract="true"/>
? ????????? comment ??????????? ???????????, ????????? ????????????? ??????? ?? ??????? ????? ????????????? ???????????, ???? ??? ???????? ??????????? ? ????????? customerComment ? shipComment.
?????????? ???????????? ???????? ??????? ????????????? ?????? ??????. ?????????? ???????????? ???? ??????? ????????????? ? ????????? ???????????? (??????????????????? ????????? xsi:type) ?? ???? ????. ?????????? ??????????? ???? ??????. ????? ???????? ???????????? ???????:
??????? transport ?? ??????????, ??????? ????? ????????? ? ??????????. ?????? ??? ??????????? ???? ??????????, ? ??????? ??????? transport ?? ????? ?????????? ? ????????? ??? ???????? xsi:type, ??????? ????????? ?? ??????????? ???. ??? ????????, ??? ????????? ???????? ?? ????????????? ????? (??? ??? ??????? transport ????? ??????????? ???):
< transport xmlns="http://cars.example.com/schema"/>
?????? ????????? ???????? ????????????? ????????, ????????? ??????? transport ????? ?? ??????????? ??? Car, ?????????? ??????????? ??? Vehicle.