![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm simply listing records from a database into such xml: LIST ITEM id=1" / ITEM id=2" / ... /LIST I was using FOR XML EXPLICIT for that but now I'd like to do it using more friendly FOR XML PATH mode. The problem is that if there is no records in the list it returns empty XML. In FOR XML EXPLICIT mode it returned empty element. LIST / How to achieve it in FOR XML PATH mode? |
#3
| |||
| |||
|
|
I'm simply listing records from a database into such xml: LIST ITEM id=1" / ITEM id=2" / ... /LIST I was using FOR XML EXPLICIT for that but now I'd like to do it using more friendly FOR XML PATH mode. The problem is that if there is no records in the list it returns empty XML. In FOR XML EXPLICIT mode it returned empty element. LIST / How to achieve it in FOR XML PATH mode? |
#4
| |||
| |||
|
|
I'm simply listing records from a database into such xml: LIST ITEM id=1" / ITEM id=2" / ... /LIST I was using FOR XML EXPLICIT for that but now I'd like to do it using more friendly FOR XML PATH mode. The problem is that if there is no records in the list it returns empty XML. In FOR XML EXPLICIT mode it returned empty element. LIST / How to achieve it in FOR XML PATH mode? |
#5
| |||
| |||
|
|
I'm simply listing records from a database into such xml: LIST ITEM id=1" / ITEM id=2" / ... /LIST I was using FOR XML EXPLICIT for that but now I'd like to do it using more friendly FOR XML PATH mode. The problem is that if there is no records in the list it returns empty XML. In FOR XML EXPLICIT mode it returned empty element. LIST / How to achieve it in FOR XML PATH mode? |
#6
| |||
| |||
|
|
I'm simply listing records from a database into such xml: LIST ITEM id=1" / ITEM id=2" / ... /LIST I was using FOR XML EXPLICIT for that but now I'd like to do it using more friendly FOR XML PATH mode. The problem is that if there is no records in the list it returns empty XML. In FOR XML EXPLICIT mode it returned empty element. LIST / How to achieve it in FOR XML PATH mode? |
#7
| |||
| |||
|
|
I'm simply listing records from a database into such xml: LIST ITEM id=1" / ITEM id=2" / ... /LIST I was using FOR XML EXPLICIT for that but now I'd like to do it using more friendly FOR XML PATH mode. The problem is that if there is no records in the list it returns empty XML. In FOR XML EXPLICIT mode it returned empty element. LIST / How to achieve it in FOR XML PATH mode? |
#8
| |||
| |||
|
|
I'm simply listing records from a database into such xml: LIST ITEM id=1" / ITEM id=2" / ... /LIST I was using FOR XML EXPLICIT for that but now I'd like to do it using more friendly FOR XML PATH mode. The problem is that if there is no records in the list it returns empty XML. In FOR XML EXPLICIT mode it returned empty element. LIST / How to achieve it in FOR XML PATH mode? |
#9
| |||
| |||
|
|
I'm simply listing records from a database into such xml: LIST ITEM id=1" / ITEM id=2" / ... /LIST I was using FOR XML EXPLICIT for that but now I'd like to do it using more friendly FOR XML PATH mode. The problem is that if there is no records in the list it returns empty XML. In FOR XML EXPLICIT mode it returned empty element. LIST / How to achieve it in FOR XML PATH mode? |
#10
| |||
| |||
|
|
I'm simply listing records from a database into such xml: LIST ITEM id=1" / ITEM id=2" / ... /LIST I was using FOR XML EXPLICIT for that but now I'd like to do it using more friendly FOR XML PATH mode. The problem is that if there is no records in the list it returns empty XML. In FOR XML EXPLICIT mode it returned empty element. LIST / How to achieve it in FOR XML PATH mode? |
![]() |
| Thread Tools | |
| Display Modes | |
| |