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. XML / XSL
  4. Write XML from DataSet in ASP.Net

Write XML from DataSet in ASP.Net

Scheduled Pinned Locked Moved XML / XSL
databasecsharpasp-netcomalgorithms
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.
  • P Offline
    P Offline
    Psycho Coder Extreme
    wrote on last edited by
    #1

    I am trying to write a dataset upon login and write certain information retrieved from an Access db (I hate Access but right now the SQL box isn't available so I'm hitting the Access db as little as possible). When I populate the DataSet and use DataSet.WriteXML it's giving weird results. Also, when I login in a 2nd time (with a different user, the only part that works is searching the XML for the user I'm logging in with if it exists then dont rewrite it) I want it to append it to the existing XML document and even this isn't working right, the .WriteXML is giving a result like

    <newdataset>
    <Table>
    <_x0027_u_name_x0027_>rlmccutchen<_x0027_u_name_x0027_>
    <_x0027_u_pwd_x0027_>*********<_x0027_u_pwd_x0027_>
    <_x0027_f_name_x0027_>Richard<_x0027_f_name_x0027_>
    <_x0027_l_name_x0027_>McCutchen<_x0027_l_name_x0027_>
    <_x0027_email_x0027_>richard@psychocoder.net<_x0027_email_x0027_>
    <_x0027_is_admin_x0027_>1<_x0027_is_admin_x0027_>
    <_x0027_total_posts_x0027_>0<_x0027_total_posts_x0027_>
    <_x0027_client_id_x0027_>1<_x0027_client_id_x0027_>
    <_x0027_user_id_x0027_>1<_x0027_user_id_x0027_>
    <_x0027_site_name_x0027_>RamEngine<_x0027_site_name_x0027_>
    </Table>
    </newdataset>
    <newdataset>
    <Table>
    <_x0027_u_name_x0027_>jbunton<_x0027_u_name_x0027_>
    <_x0027_u_pwd_x0027_>*********<_x0027_u_pwd_x0027_>
    <_x0027_f_name_x0027_>Jack<_x0027_f_name_x0027_>
    <_x0027_l_name_x0027_>Bunton<_x0027_l_name_x0027_>
    <_x0027_email_x0027_>ramremfg@aol.com<_x0027_email_x0027_>
    <_x0027_is_admin_x0027_>0<_x0027_is_admin_x0027_>
    <_x0027_total_posts_x0027_>0<_x0027_total_posts_x0027_>
    <_x0027_client_id_x0027_>1<_x0027_client_id_x0027_>
    < _x0027_user_id_x0027_>2<_x0027_user_id_x0027_>
    <_x0027_site_name_x0027_>RamEngine<_x0027_site_name_x0027_>
    </Table>
    </newdataset>

    I've been raking my head for days now trying to solve this so I canh move on to a new piece. Can someone please help.

    " In the next millennium there are two kinds of business, those on the Internet and those out of business" Bill Gates "Be nice to nerds. Chances are you'll end up working for o

    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