Well-Formed XML from Event Handers?

How do i output a well-formed XML document from inside an active event
handler? I tried this in VB.NET (using a stringbuilder) and I kept
getting a parser error. Has anybody run into this problem and what was
the solution?

Advertisements

pbd22 wrote:
> How do i output a well-formed XML document from inside an active event
> handler? I tried this in VB.NET (using a stringbuilder) and I kept
> getting a parser error. Has anybody run into this problem and what was
> the solution?

What kind of "event handler" are you talking about? Is that the ASP.NET
page model? What else does the page contain besides the code for the
event handler?

Advertisements

On Mar 13, 10:17 am, Martin Honnen <> wrote:
> pbd22 wrote:
> > How do i output a well-formed XML document from inside an active event
> > handler? I tried this in VB.NET (using a stringbuilder) and I kept
> > getting a parser error. Has anybody run into this problem and what was
> > the solution?
>
> What kind of "event handler" are you talking about? Is that the ASP.NET
> page model? What else does the page contain besides the code for the
> event handler?
>
> --
>
> Martin Honnen
> http://JavaScript.FAQTs.com/

Thanks for your reply Martin.

Its VB.NET/ASP.NET 2.0 and the event handler is a custom handler that
gets fired every time a byte is sent to a remote server for FTP. The
only
other method on the page is a Page_Load event that handles the upload
of the files. Below is the event handler. I currently get a parser
error becuase
it keeps recreating the XML every time the event handler fires and I
cant
figure out how to avoid this - I need to replace/update it, not append
to it.

Public Sub onIncrementCallback(ByVal sender As Object, ByVal e As
IncrementEventArgs)

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!