Problem with XML
-
Hello all! We are working with a partner to integrate customer systems with eachother through EDI. The partner has a solution with translates XML messages to EDI messages and vice versa. All is going well with the translation from XML to EDI. In fact, if you consider the XML standard, all is going well with the translation from EDI to XML. The problem lies within the XML support of the Microsoft MBS Nav software. The standard XML allows that the order of the attributes in an element varies with every message. For example:
<xmlelement attrib1="1" attrib2="2">
is considered the same as<xmlelement attrib2="2" attrib1="1">
as far as the standard is concerned. MBS Nav however cannot handle these situations. I know that .NET 2.0 has decent XML support. I also know a thing or two about C# and .NET. What I don't know, if there is an easy way to generate a XML file with a predetermined order of elements and attributes. I heard something about xsd schemas, but I have never worked with these things before. Any pointers into a direction are highly appreciated! Thanks in advance.Behind every great black man... ... is the police. - Conspiracy brother Blog[^]
-
Hello all! We are working with a partner to integrate customer systems with eachother through EDI. The partner has a solution with translates XML messages to EDI messages and vice versa. All is going well with the translation from XML to EDI. In fact, if you consider the XML standard, all is going well with the translation from EDI to XML. The problem lies within the XML support of the Microsoft MBS Nav software. The standard XML allows that the order of the attributes in an element varies with every message. For example:
<xmlelement attrib1="1" attrib2="2">
is considered the same as<xmlelement attrib2="2" attrib1="1">
as far as the standard is concerned. MBS Nav however cannot handle these situations. I know that .NET 2.0 has decent XML support. I also know a thing or two about C# and .NET. What I don't know, if there is an easy way to generate a XML file with a predetermined order of elements and attributes. I heard something about xsd schemas, but I have never worked with these things before. Any pointers into a direction are highly appreciated! Thanks in advance.Behind every great black man... ... is the police. - Conspiracy brother Blog[^]
Creating a schema for your xml is the path to take. There are plenty of resources available, online, books, articles, etc. that can guide you.
only two letters away from being an asset
-
Hello all! We are working with a partner to integrate customer systems with eachother through EDI. The partner has a solution with translates XML messages to EDI messages and vice versa. All is going well with the translation from XML to EDI. In fact, if you consider the XML standard, all is going well with the translation from EDI to XML. The problem lies within the XML support of the Microsoft MBS Nav software. The standard XML allows that the order of the attributes in an element varies with every message. For example:
<xmlelement attrib1="1" attrib2="2">
is considered the same as<xmlelement attrib2="2" attrib1="1">
as far as the standard is concerned. MBS Nav however cannot handle these situations. I know that .NET 2.0 has decent XML support. I also know a thing or two about C# and .NET. What I don't know, if there is an easy way to generate a XML file with a predetermined order of elements and attributes. I heard something about xsd schemas, but I have never worked with these things before. Any pointers into a direction are highly appreciated! Thanks in advance.Behind every great black man... ... is the police. - Conspiracy brother Blog[^]
Additional to what Mark said, you might want to take a look at this tutorial regards
-
Additional to what Mark said, you might want to take a look at this tutorial regards