Trading Network not recognizing incoming document type

Hi,

I am having this requirement where I need to process document through TN which has namespace in root tag.

TN is not identifying the document with a namespace in root tag of input document. when I tried after removing namespace from root tag, TN is identifying the document.
No namespace is there at field level. It is present only for the root tag.

Sample:

<?xml version="1.0"?>

ns:RootTag
value1
value2
value3
</ns:RootTag>

Any help would be appreciated to solve this issue.

Thank you!

Hi,

You XML content itself is malformed. You may check with any online XML validator tool. For example, https://www.w3schools.com/xml/xml_validator.asp.

In your case since you’re using namespace, in your xml header you should specify where the schema is and also the child node should all be using the prefix like ns:field1 etc.

<?xml version="1.0"? xmlns:ns=[SomeURL]> value1 value2 value3 Please rectify or check with the producer from the source whether they've provided correct xml content. Then try again in TN. Regards, Mike