The xmlport to be imported has multiple namespaces along with the default namespace.
I added prefix ns5 to the root element in the xmlport object and added all the namespaces to the xmlport Namespace property as below:
Prefix - Namespace
ns2 - abc
Blank - xyz
ns4 - aaa
ns3 - bb
ns5 - ccc
Namespace xyz does not have any prefix in the xml file so I have prefix as blank.
The root element of the xml file to be imported is like below which has prefix ns5.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns5:materialMovementExport xmlns:ns2="abc" xmlns="xyz" xmlns:ns4="aaa" xmlns:ns3="bbb" xmlns:ns5="ccc">
The file I exported from xmlport is like below without prefix ns5.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<materialMovementExport xmlns:ns5="ccc" xmlns:ns3="bbb" xmlns:ns4="aaa" xmlns:ns2="abc" xmlns="xyz">
Because of this I am not able to import the file. I get below error when I import the file
The attribute <xmlns> is unexpected.
Need help to fix this.
Thanks,
Vidya Moger
0
Answers
2. Convert to XML String -> Edit String