K2BlackPoint: Unexpected XML declaration

  • 3 September 2010
  • 2 replies
  • 3 views

Badge

We have an InfoPath form template defined as a XML field which name is "Request".
Then we have a Data Field of type string which name is "InfoPathXml".
We want to store in the field "InfoPathXml" the raw xml of "Request ".
But we are getting the following error after doing the mapping and before calling a web service passing the "InfoPathXml" field:
"Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 1, position 9152."
We suppose that we are not getting the raw xml, just the content without a xml format.


How can we get the raw xml of the InfoPath form template?
Why are we getting an error before calling the web service?


Regards,
Paul


2 replies

Badge +1

Hi Paul,


Did you find an answer to it? I am having the same problem. I am trying to pass my entire Infopath form (xml field) into a string data field and then to the method expecting a string as input parameter. Same error message.


Cheers,


Miguel.

Badge +5

how did you solve the issue you have !!! i am stuck here with no answer ,,,

Reply