Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xml auto elements
Message
De
18/10/2002 17:25:17
 
 
À
18/10/2002 11:09:58
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Divers
Thread ID:
00712833
Message ID:
00713085
Vues:
16
You can use the ELEMENT directive to create a child-node.

-Mike

>>I don't think that you'll be able to get this with XML AUTO but you can if you use XML EXPLICIT. XML EXPLICIT is very flexible. You can create any document structure that you need - but it is more work on your part.
>>
>>-Mike
>>
>>>Hi All,
>>>
>>>I am wondering if there is a way for SQL to add attributes into the elements of the results that I return. I.E
>>>
>>>SELECT transname,
>>> transfer
>>>from transferee TranNode
>>>XML AUTO, ELEMENTS
>>>
>>>I want my XML to look like this
>>>
>>><TranNode>
>>>  <transname>MyName</transname>
>>>  <transfer transprocess="true">MyTransfer</transfer>
>>><TranNode>
>>>
>>>I would like someway to add the "transprocess" attribute in SQL and not in the DOM doc. Any help will be very very much appreciated.
>
>Hi Mike,
>
>One problem I have not been able to over come is that XML explicit also places all of the elements in as Attributes to the root node. Is there a way to get around this.
>
>Carl
>
>>>
>>>Carl
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform