<?xml version="1.0" encoding="UTF-8" standalone="no"?> <StaticForm xmlns="urn:customs.ru:Information:CustomsDocuments:StaticForm:5.0.3"> <CustomsProcedure>ЭК</CustomsProcedure> <TransportModeCode>30</TransportModeCode> <ReportingDate>2014-04</ReportingDate> <Consignor> <OrganizationName xmlns="urn:customs.ru:CommonAggregateTypes:5.0.3">***</OrganizationName> <RFOrganizationFeatures xmlns="urn:customs.ru:CommonAggregateTypes:5.0.3">
SF1 := 'urn:customs.ru:CommonAggregateTypes:5.0.3';i'll have my error like: The prefix '' cannot be redefined from '***' to '***'
Answers
Need diferent xmlns in diferent element of xml.
Like:
<StaticForm xmlns="urn:customs.ru:Information:CustomsDocuments:StaticForm:5.0.3">
<CustomsProcedure>ЭК</CustomsProcedure>
<TransportModeCode>30</TransportModeCode>
<ReportingDate>2014-04</ReportingDate>
<Consignor>
<OrganizationName xmlns="urn:customs.ru:CommonAggregateTypes:5.0.3">***</OrganizationName>
<RFOrganizationFeatures xmlns="urn:customs.ru:CommonAggregateTypes:5.0.3">
Were you able to solve this without the prefix?