header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
January 09, 2009, 07:16:20 am
Username: Password:
Login with username, password and session length

Forgot your password?
 
error org.apache.xmlbeans.XmlException: error: XML declaration is not well forme
Welcome, Guest. Please login or register.
January 09, 2009, 07:16:20 am
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  error org.apache.xmlbeans.XmlException: error: XML declaration is not well forme
« previous next »
Pages: [1] Print
Author Topic: error org.apache.xmlbeans.XmlException: error: XML declaration is not well forme  (Read 380 times)
darshan
Newbie
*
Posts: 3


« on: August 05, 2008, 09:54:44 pm »

Hi,
Iam getting a XML declaration not well formed in my response since in the response the first line is an empty line and then the normal XML file starts. Is there anyway I could get rid of that empty line..or make my scripts ignore that empty line.

def holder = groovyUtils.getXmlHolder( "activateRequest#Response" )

Thank you,
Darshan
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,666


« Reply #1 on: August 07, 2008, 12:05:27 am »

Hi,

hmm.. have you disabled pretty-printing? (which should remove the empty line..)

If that doesn't help, please try

Code:
def xml = context.expand( '${activateRequest#Response}' )
def holder = groovyUtils.getXmlHolder( xml.trim() )

regards,

/Ole
eviware.com
Logged
darshan
Newbie
*
Posts: 3


« Reply #2 on: August 07, 2008, 02:15:08 am »

Thanks, it was some problem with the response.it was generating some garbage characters..
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header