XMLport : The Attribute <TagName> is unexpect

Serval
Serval Member Posts: 51
Hi !

I'm trying to import an XML file. But I'm getting this error message :

The Attribute <ORDER> is unexpected.

Here are the properties of the tag :
Indentation : <0>
TagName : ORDER
TagType : Element
SourceType : Text
VariableName : <ORDER>
MinOccurs : <Once>
MaxOccurs : <Unbounded>

The tag in the XML file is structured as follow :
<ORDER type="standard" version="1.0" xmlns="http://www...."&gt;

Could someone please tell me what's going on wrong ? Thanks in advance.

See you.

Answers

  • NASi
    NASi Member Posts: 48
    Maybe is not important but I always work with tags in lower case ...
    Thanks a lot.
  • Serval
    Serval Member Posts: 51
    Maybe is not important but I always work with tags in lower case ...


    I've tried this but I still have the problem.
  • aboomar
    aboomar Member Posts: 47
    Try to change TagType = Attribute
  • Serval
    Serval Member Posts: 51
    I've found the solution. What I needed to do is to define two supplemental tag "type" + "version" as "Attribute" indented under the "ORDER" tag.

    Then I faced another problem with the Namespace "xmlns" when importing the XML file.
    But there are already some topics explaining how to solve Namespaces problems in the forum. This one is helpfull :
    http://www.mibuso.com/forum/viewtopic.php?t=5655&highlight=namespace+import+xmlport