Page 1 of 1

E4X parsing problem

PostPosted: Sat Nov 05, 2011 12:02 am
by mboegem
Hi everyone,

I'm trying to put together XML for a request to a soap server.
Normally I use this syntax to do this via the E4X implementation in Servoy, which works fine:
Code: Select all
var _trans = <transaction/>


However, when I try to do this:
Code: Select all
var _envelope = <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"/>;


I get the attached error when saving the method.
AST Parser problem.png
AST Parser problem
AST Parser problem.png (35.46 KiB) Viewed 2688 times

I could just write the XML as a string, because that's what is gonna happen anyway when posting it.
Still like the structured E4X way better... any chance this is going to work?

Re: E4X parsing problem

PostPosted: Tue Nov 08, 2011 11:17 am
by jcompagner
i can use that declaration in Servoy 6.
For 5 you have to use a string or move to 6 for better E4X support

Re: E4X parsing problem

PostPosted: Tue Nov 08, 2011 2:14 pm
by mboegem
thnkx Johan