Results 1 to 2 of 2

Thread: Change xml output

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2008
    Posts
    1

    Change xml output

    Hi all,

    i need some help on xmlwriter. I take a look at the msdn sample on xmlwriter but want to change one thing.
    in the sample the outpu is like that:

    <?xml version="1.0" encoding="utf-8"?>
    <test>
    <Person> Titel="" Name="Schmidt" Vorname="Carlos" />
    </test>

    but whati want is a outlook like this (more like html):

    <?xml version="1.0" encoding="utf-8"?>
    <test>
    <Person> Titel="" Name="Schmidt" Vorname="Carlos" </Person>
    </test>

  2. #2
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Boston, MA
    Posts
    391

    Re: Change xml output

    i think that happens because your element has no content. Try this:

    Code:
    writer.WriteFullEndElement() ' use that when you want a full end tag

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