Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > XML output tags order

Reply
Thread Tools

XML output tags order

 
 
Mazen S. Alzogbi
Guest
Posts: n/a
 
      09-28-2004
Hi,

I have a web service that returns a serialized version of few business
entities as follows:

<?xml version="1.0" encoding="utf-8" ?>
- <CompanyProfile xmlnssd="http://www.w3.org/2001/XMLSchema"
xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.shuaacapital.com/webservices/">
+ <RatiosAndValues Currency="AED">
+ <GeneralInforamtion>
+ <OwnerShipAndSubsidiaries>
+ <CapitalStructureAndCorporateActions>
</CompanyProfile>

I created a new ASP.NET application and imported the same .asmx file to the
new project, compiled and called the web service and I got the following
result:

<?xml version="1.0" encoding="utf-8" ?>
- <CompanyProfile xmlnssd="http://www.w3.org/2001/XMLSchema"
xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.shuaacapital.com/webservices/">
+ <OwnerShipAndSubsidiaries>
+ <GeneralInforamtion>
+ <RatiosAndValues Currency="AED">
+ <CapitalStructureAndCorporateActions>
</CompanyProfile>

What is/are the factor(s) that make the CLR decide the order of the output
tags? Everything is the same in my case here; the code, StoredProc,
Database, Table, etc. It's just another ASP.NET application on the same
server!

Any explanation/resources would be appreciated.

Cheers,

-Mazen


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Order-independent tags in XML keksforscher XML 2 01-13-2008 09:37 PM
XSLT2.0 output XML node tree in comment tags RolfK XML 1 01-12-2008 02:47 PM
Minidom XML output - attributes in wrong order ? Peter Møllerud Python 2 09-09-2006 07:05 AM
Traversion order cf. output order in XSL Soren Kuula XML 2 02-01-2004 09:10 AM
RegEx to find CFML tags nested in HTML tags Dean H. Saxe Perl 0 01-03-2004 06:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57