0

I have this SQL Server query that uses XML Explicit

SELECT 1 AS Tag, NULL AS Parent, NULL AS 'Agents!1!'
FOR XML EXPLICIT

I need use petapoco to obtains this results... can I make this?

Thanks,

Victor Sanchez
  • 583
  • 9
  • 28

1 Answers1

0

You should use XML EXPLICIT when you need that the DB outputs XML, generally from web services.

Petapoco isn't made for that.

You can get the data in a list and then generate the XML and return the value.

Eduardo Molteni
  • 38,786
  • 23
  • 141
  • 206