My code looks like:
----
final CheckoutShoppingCartRequest checkoutCart =
new CheckoutShoppingCartRequest(getConstants(request));
// code populating shopping cart
final Collection<UrlParameter> parameters = new
ArrayList<UrlParameter>(params.size());
for (final Param param : params)
{
parameters.add(new UrlParameter(param.getName(),
param.getParameter().googleCheckoutParameterType));
}
checkoutCart.addParameterizedUrl(url, false, parameters);
----
And the xml that results is:
----
<parameterized-urls>
<parameterized-url
url="https://www.linkconnector.com/traffic_merchant.php?lc=000069"><parameters><
url-parameter
name="oid" type="order-id"/></parameters><parameters><url-parameter
name="amt"
type="order-total"/></parameters></parameterized-url></parameterized-urls>
----
This is clearly wrong. I don't want two <parameters> blocks with one
<url-parameter> in each. I want one <parameters> block with both
parameters in it.
I hope this is cleared up soon.
Cheers,
Erik
P.S. If you care, the error that Google gives back is:
--
XML failed to validate against the schema at line: 1, column: 1, with
error: cvc-complex-type.2.4.d: Invalid content was found starting with
element 'parameters'. No child element is expected at this point.
--
Original issue reported on code.google.com by rasmusse...@gmail.com on 4 Jun 2007 at 8:44
Original issue reported on code.google.com by
rasmusse...@gmail.com
on 4 Jun 2007 at 8:44