xml wrapped tags or attributes
-
hi to all, i'm working with xml data. i extract the data from an sql server data base via a stored procedure. the result of the executed procedure is an XmlTextReader. i'm trying to copy the content of the into a physical file on the hard disk. i tried two solution. first one consist on loading the reader into an XmlDocument and save it to the disk the second consist on a loop on the reader and creating the xml file manually. the problem is : when the procedure brings a lot of data, sometimes i have some tags or attributes wrapped between two lines. like this : or you can notice that in the first example the attribute is wrapped on two lines and in the second case the tag is wrapped on two lines so when i tried to load the reader into an xmldocument, i got an error message. and when i tried to loop through the reader, i also got an error when the reader arrive to the wrapped attribute (third_attrib in my examples) the question is how can i solve the problem of wrapped tags or attributes ? does anyone has a solution to my problem ? best regards and thanks in advance fady