Skip Menu |

This queue is for tickets about the Net-eBay CPAN distribution.

Report information
The Basics
Id: 16893
Status: new
Priority: 0/
Queue: Net-eBay

People
Owner: Nobody in particular
Requestors: als [...] carspot.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Date: Tue, 03 Jan 2006 16:14:45 -0600
From: als <als [...] carspot.com>
To: ichudov [...] algebra.com
CC: bug-net-ebay [...] rt.cpan.org
Subject: Multiple XML tags bug...
heh, sorry to bother you again, but i'm wondering if this would be a quick fix for you or not... for cars you have to have item specific tags, (year, warranty, transmission, etc). This is also similar for other products like books or jewlery. Anyways, the format in the XML needs to be something like... <Item> //Array of item specifics <AttributeSetArray> //The set the following attributes belong to... <AttributeSet attributeSetID="1137" > //Year of car <Attribute attributeID="38" > <Value> <ValueLiteral>1996</ValueLiteral> </Value> </Attribute> //Transmission <Attribute attributeID="10239" > <Value> <ValueID>10427</ValueID> <ValueLiteral>Automatic</ValueLiteral> </Value> </Attribute> </AttributeSet> </AttributeSetArray> Anyways, you get the picture... Now using the module... the code in the submitRequest would have to look like... #Attributes AttributeSetArray => { #passenger vehicle set AttributeSet => { _attributes => { attributeSetID => 1137 }, _value => { #transmission Attribute => { _attributes => { attributeID => 10239 }, _value => { Value => { #automatic ValueLiteral => 'Automatic', ValueID => 10427 } } }, #year Attribute => { _attributes => { attributeID => 38}, _value => { Value => { #automatic ValueLiteral => '1996', } } } } } } Notice the hash can only have one key with the name 'Attribute'. So i only get the last defined attribute, since it keeps overwriting the old key value for 'Attribute'. if i put an array for that, it screws up the module that's making the XML. Any ideas on how to fix this? or maybe i'm just not using the module correctly. Anyways, let me know. Thanks!