cancel
Showing results for 
Search instead for 
Did you mean: 

Problem transfering XML node to testCase property

Highlighted
New Contributor

Problem transfering XML node to testCase property

 

 

I am trying to transfer an XML node to a property on the TestCase so that I can embed the node as a variable in another message later on.  The Xpath I am using does resolve properly when I use Oxygen XML.  

 

Any ideas on why I am getting an error about Whitespace missing would be appreciated as I'm not sure what attribute it is talking about.Screen Shot 2020-06-30 at 2.44.27 PM.png

4 REPLIES 4
Highlighted
Community Hero

Re: Problem transfering XML node to testCase property

Hey @dmatthews,

I've seen this before about missing natural whitespace (rather than tagged whitespace)

I found the following stackoverflow post when someone had the same issue. Please see following link for probable fix.

https://stackoverflow.com/questions/11691962/xml-schema-error-required-white-space-was-missing

Cheers,

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Highlighted
Community Hero

Re: Problem transfering XML node to testCase property

Use test case level custom property and refer the same the test case where ever it is needed.


Regards,
Rao.
Highlighted
New Contributor

Re: Problem transfering XML node to testCase property

We aren't able to do that.

 

We are wanting to using SoapUI as a tool to aid the developers with their work, by acting as a destination service.  The developer's system sends a message to a destination service (SoapUI), which then pulls some of the information out of the source message and returns it as part of the larger destination message that is sent back to the source.

Highlighted
New Contributor

Re: Problem transfering XML node to testCase property

Thanks Rich, we don't have any elements that have more than one attribute.  If it requires an additional space between the end of the attribute and the closing tag, that this is a no go, as a standard XML file is about 800 lines long and would require adding the additional spaced to dozens of files.

 

I will see if I can find a smaller file to test with and add the additional space after the attribute.

 

Thanks

Dean

New Here?
Join us and watch the welcome video:
Top Kudoed Authors