Results 1 to 2 of 2

Thread: [2.0] How do I load a string into XPathDocument?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Location
    I'm right here!
    Posts
    849

    Question [2.0] How do I load a string into XPathDocument?

    Hello!

    I want to load a string (in an xml format) into a XPathDocument, but it only
    allows streams to be loaded...

    Can anyone please help??

    Thanks!!!

    Dekel C.

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [2.0] How do I load a string into XPathDocument?

    Use a StringReader:

    Code:
    XPathDocument doc = new XPathDocument(new StringReader(xml_string));

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width