Ideando

enero 16, 2007

Como cargar un dataset desde un archivo XML

Filed under: .net, asp.net, programacion — mrodriguez @ 8:30 pm

El día de ayer encontré la forma en la que puedo llenar un dataset a partir de un archivo xml. El código para hacerlo va de la siguiente forma:

Dim ArchivoXML As XmlDataDocument = New XmlDataDocument
ArchivoXML.DataSet.ReadXml(archivo) ‘<—- Aquí se carga el archivo a una variable tipo documento XML

Dim Ds As DataSet = ArchivoXML.DataSet ‘ <— Aqui se convierte la variable anterior a un dataset

Bastante simple.

Mas información útil en: http://www.insesys.com.mx

Anuncios

23 comentarios »

  1. No es mas Fácil y mas rapido de esta forma??

    Dim ds as new DataSet

    ds.ReadXML(Archivo)

    JEJEJE, Saludos desde Chile!!

    Comentario por Héctor Xino Man Ortega — octubre 27, 2008 @ 7:47 pm

  2. Si, si funcionara.
    Yo hago eso, pero utilizando un textreader. Lo que pasa es que me da un error de “root element is missing”.
    Sabes como solucionarlo?
    Saludos

    Comentario por Carmen — abril 3, 2009 @ 9:59 am

  3. What’s Going down i am new to this, I stumbled upon this I have found It positively helpful and it has helped me out loads. I hope to contribute & help different users like its aided me. Great job.

    Comentario por check this out — noviembre 8, 2012 @ 5:20 pm

  4. If you are going for best contents like me, only pay a visit this
    site every day because it gives feature contents, thanks

    Comentario por landing page plugin — noviembre 14, 2012 @ 3:35 pm

  5. This is absolutely wonderful!!! Thankyou for putting this
    out there!!!

    Comentario por sem seo — diciembre 23, 2012 @ 4:35 pm

  6. You actually make it seem so easy with your presentation but I find this matter to be actually something which I think I would never
    understand. It seems too complicated and extremely broad for me.
    I am looking forward for your next post, I’ll try to get the hang of it!

    Comentario por http://petsupplies-Plus.com — enero 5, 2013 @ 6:55 pm

  7. Paragraph writing is also a excitement, if you know afterward you can write
    otherwise it is difficult to write.

    Comentario por http://www.cromi.com — enero 25, 2013 @ 11:55 pm

  8. I believe what you said made a lot of sense. But, think about
    this, suppose you added a little information? I mean, I don’t want to tell you how to run your blog, but suppose you added a headline that grabbed people’s attention?
    I mean Como cargar un dataset desde un archivo XML Ideando is a little boring.
    You should look at Yahoo’s home page and note how they create post headlines to grab viewers to click. You might add a video or a pic or two to get readers excited about everything’ve got to say.
    In my opinion, it might bring your blog a little livelier.

    Comentario por gratis spiele — febrero 14, 2013 @ 3:23 am

  9. Consider your wall colors or rooms look for choosing the best fan.
    with your fan, you will want to double check and ensure that the ball.
    Whatever your lifestyle, you’re sure to find the right lighting to complement it.

    Comentario por flush mount ceiling fans with lights and remote — marzo 10, 2013 @ 4:28 pm

  10. I apologize but I don’t agree with this anymore it’s bunk!

    Comentario por http://Www.juanronline.com/ — abril 26, 2013 @ 4:37 pm

  11. Hola! I’ve been reading your website for some time now and finally got the courage to go ahead and give you a shout out from Dallas Tx! Just wanted to say keep up the fantastic work!

    Comentario por Brock — mayo 1, 2013 @ 12:59 am

  12. Good post. I certainly love this website. Keep it up!

    Comentario por Martin Crumlish Emperor Social — mayo 2, 2013 @ 4:40 pm

  13. Hi, the whole thing is going perfectly here and ofcourse every one is sharing information, that’s genuinely fine, keep up writing.

    Comentario por tinyurl.com — mayo 4, 2013 @ 6:06 am

  14. Nice blog here! Also your web site so much up very fast!
    What web host are you the usage of? Can I am getting your affiliate hyperlink
    on your host? I want my site loaded up as fast as yours
    lol

    Comentario por Accelerate High Growth Business Training — mayo 9, 2013 @ 7:50 pm

  15. While you should cleanse and moisturize your skin daily, a very small amount of grapeseed oil under your
    daily moisturizer is an ideal way to up the moisture content in your facial skin.
    Grape seed oil on the other hand can stay in the body for as long as 3 days where the body can utilize its health benefits.

    Grapeseed oil has regenerative and restructuring properties and has excellent
    skin moisturizing properties.

    Comentario por grapeseed benefits — mayo 15, 2013 @ 6:01 pm

  16. What’s up, yup this post is genuinely nice and I have learned lot of things from it regarding blogging. thanks.

    Comentario por warrior forum wealthy affiliate — mayo 16, 2013 @ 6:23 am

  17. I’m not that much of a online reader to be honest but your blogs
    really nice, keep it up! I’ll go ahead and bookmark your website to come back later on. Cheers

    Comentario por Wilbert — mayo 26, 2013 @ 8:49 am

  18. Thanks , I have recently been looking for information about this subject for a while and yours is the greatest
    I’ve discovered till now. But, what in regards to the conclusion? Are you certain about the supply?

    Comentario por crear facebook — mayo 27, 2013 @ 8:30 am

  19. Simply wish to say your article is as astonishing.
    The clarity in your post is simply cool and i could assume you’re an expert on this subject. Fine with your permission let me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please keep up the rewarding work.

    Comentario por nokia e5 specification — mayo 30, 2013 @ 8:53 am

  20. Hurrah, that’s what I was looking for, what a stuff! existing here at this blog, thanks admin of this web site.

    Comentario por Musicalreviewer.Com — mayo 31, 2013 @ 3:39 pm

  21. Undeniably consider that which you stated. Your favourite
    reason seemed to be on the net the simplest factor to take
    into accout of. I say to you, I certainly get irked even
    as other folks consider concerns that they just don’t realize about. You managed to hit the nail upon the top and outlined out the whole thing with no need side-effects , other folks could take a signal. Will likely be back to get more. Thank you

    Comentario por Binaere Optionen — junio 20, 2013 @ 11:03 am

  22. Very great post. I just stumbled upon your weblog and wished to
    mention that I have truly enjoyed surfing around your weblog posts.
    In any case I’ll be subscribing in your feed and I’m hoping you
    write again soon!

    Comentario por kids birthday party ideas — junio 30, 2013 @ 10:38 am

  23. Every point of data is kept safe in an external server if disaster
    strikes in and around your basement. Busch brushed the wall early in
    the week. On the next screen, select your language, time and money in backing up
    computer files and keeping them safe. There’s also more work on Internet Explorer than we saw before, with Mobile Tech World noticing that Data Sense provides an option for these companies to know that the products of Dell.

    Comentario por Aretha — julio 4, 2013 @ 8:39 pm


RSS feed for comments on this post. TrackBack URI

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

Crea un blog o un sitio web gratuitos con WordPress.com.

A %d blogueros les gusta esto: