This DOM cannot be loaded twice!

G

G. Tarazi

This code:

[InfoPathEventHandler(EventType=InfoPathEventType.OnLoad)]

public void OnLoad(DocReturnEvent e)

{

thisXDocument.DOM.loadXML(xml);

}



is triggering this error, why?



"This DOM cannot be loaded twice"
 
G

G. Tarazi

How can I load XML (as string) to the main dom?

Thanks

"G. Tarazi" <Tarazi (at) LiveTechnologies.ca> wrote in message This code:

[InfoPathEventHandler(EventType=InfoPathEventType.OnLoad)]

public void OnLoad(DocReturnEvent e)

{

thisXDocument.DOM.loadXML(xml);

}



is triggering this error, why?



"This DOM cannot be loaded twice"
 
M

Mattia Saccotelli

Hi,
would you please post the code to do so?
I'm trying to do the same but I can't figure out which class to
instantiate in order to replace the DOM "/" child.

Thank you,
Mattia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top