Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Problem with XML

Problem with XML

Scheduled Pinned Locked Moved C#
csharpcomsalestoolsxml
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bob Stanneveld
    wrote on last edited by
    #1

    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[^]

    N L 2 Replies Last reply
    0
    • B Bob Stanneveld

      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[^]

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • B Bob Stanneveld

        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[^]

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Additional to what Mark said, you might want to take a look at this tutorial regards

        B 1 Reply Last reply
        0
        • L Lost User

          Additional to what Mark said, you might want to take a look at this tutorial regards

          B Offline
          B Offline
          Bob Stanneveld
          wrote on last edited by
          #4

          Thanks for the information. I'll look into that!

          Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups