XML Output

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy

    XML Output

    I am loading XML into my app using the .LoadXML method. If we get an error
    in this app: I am trying to send the contents of the entire XML document in
    an email. However: when I go xDoc.ToString() (xDoc is the variable name for
    my xmlDocument), I get the name of the type instead of the XML contents.
    What would I have to do to get the contents of the xmlDocument inside this
    email? I was assuming I could do it with one line of code, but could be
    wrong in this.

    Thanks
    Andy
  • Dennis Myrén

    #2
    Re: XML Output

    Try the OuterXml property.

    --
    Regards,
    Dennis JD Myrén
    Oslo Kodebureau
    "Andy" <Andy@discussio ns.microsoft.co m> wrote in message
    news:05D9AD28-C62B-498F-9500-86A1A375A034@mi crosoft.com...[color=blue]
    >I am loading XML into my app using the .LoadXML method. If we get an error
    > in this app: I am trying to send the contents of the entire XML document
    > in
    > an email. However: when I go xDoc.ToString() (xDoc is the variable name
    > for
    > my xmlDocument), I get the name of the type instead of the XML contents.
    > What would I have to do to get the contents of the xmlDocument inside this
    > email? I was assuming I could do it with one line of code, but could be
    > wrong in this.
    >
    > Thanks
    > Andy[/color]


    Comment

    • Dennis Myrén

      #3
      Re: XML Output

      Try the OuterXml property.

      --
      Regards,
      Dennis JD Myrén
      Oslo Kodebureau
      "Andy" <Andy@discussio ns.microsoft.co m> wrote in message
      news:05D9AD28-C62B-498F-9500-86A1A375A034@mi crosoft.com...[color=blue]
      >I am loading XML into my app using the .LoadXML method. If we get an error
      > in this app: I am trying to send the contents of the entire XML document
      > in
      > an email. However: when I go xDoc.ToString() (xDoc is the variable name
      > for
      > my xmlDocument), I get the name of the type instead of the XML contents.
      > What would I have to do to get the contents of the xmlDocument inside this
      > email? I was assuming I could do it with one line of code, but could be
      > wrong in this.
      >
      > Thanks
      > Andy[/color]


      Comment

      Working...