• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.w3c.dom.* saves my XML with attributes in alphabetical order

 
Guy Harel
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read many posts saying that there was no solution to the problem of attribute alphabetical name ordering during a document save. I am wondering if there is now a solution ? The new XML crashes a .NET application...


 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then that .NET application is badly written. The XML specification allows attributes to appear in any order. Any XML parser / reader should be able to handle this.

Anyway, moving to our XML forum.
 
Guy Harel
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will try to use JDom instead, perhaps it won't change the attribute order.
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good luck with that. I can't believe that .NET comes with broken XML parsers, I'm sure it must be the C# application which is doing something wrong. I agree with Rob Prime that fixing that would be the appropriate thing to do.
 
Guy Harel
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well its a C++.NET DLL which uses the framework-loaded XML file "MyApp.exe.config", but indeed the bug comes from retreiving attributes in the non framework section of the XML. So not a bug in .NET. Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic