E9.1 Colon in XML file

sraghuwanshi

Member
Hi ,
I want to write a XML file like ,
<ns0:product

SchemaVersion="1.1"
SenderANA="123"
SenderName="abcd"
RecipientANA="0000000000000"
RecipientName="bhas"
SendDateTime="2022-02-24T03:02:24"
xmlns:ns0=http://test.com>
<Header
CELWarehouse="GBWBPC1"
CELWarehouseName="wywy"
RecordCount="1" />
<Items>

but when try to add colon it do not write file and if I use &#58; then it print underscore , also when write attributes they written in different sequence - I am using B0000201.
Please help .

Thanks
 
Your XML file should end up like this:


XML:
<ns:product

SchemaVersion="1.1"
SenderANA="123"
SenderName="abcd"
RecipientANA="0000000000000"
RecipientName="bhas"
SendDateTime="2022-02-24T03:02:24"
xmlns:ns="http://test.com">
<Header
CELWarehouse="GBWBPC1"
CELWarehouseName="wywy"
RecordCount="1">
</Header>
<Items>
</Items>
</ns:product>
 
Hi Hari,
Thanks to reply but I am not getting How to add Colon while writing XML ,since there is no while write If I try to add and pass in B0000201
 
Back
Top