Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. xml wrapped tags or attributes

xml wrapped tags or attributes

Scheduled Pinned Locked Moved C#
questiondatabasehelpsql-serversysadmin
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fady_sayegh
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups