I'm not producing the file, I'm reading the file and was trying to figure out why some of the field were inside the <result> label, and others were between the <result> </result> tags. I was trying to setup the structure of the dynamic array I am putting the data into.
> -----Original Message----- > From: [email protected] [mailto:u2-users- > [email protected]] On Behalf Of Norman Bauer > Sent: Thursday, May 13, 2010 11:15 AM > To: U2 Users List > Subject: Re: [U2] XML format question > > George, either way will work. The by product of making xml attribute > centric > (fields inside the label) is that it produces smaller files (about half > the > size of element centric). If your producing small files that may be > read by > an admin, then go with element centric as it is easier to read. > Otherwise > attribute centric is much better for storage and transfer. > > Norm > > On Thu, May 13, 2010 at 11:06 AM, George Gallen > <[email protected]>wrote: > > > I'm importing some XML, and a question came up with the following: > I'm > > writing a small xml extraction program > > to setup a dynamic array, what is the difference between putting a > field > > inside the label vs putting the field > > between the tags of the label? Aren't they both a subset of the > label? I > > always thought that if the field was > > a single value field, it would be quoted and inside the label, but > if it > > could be a multivaled field, it would go > > between the field tags, with it's own field/tags. > > > > <Result precision="address"><Latitude>39.931085</Latitude> > > <Longitude>-77.387943</Longitude><Address>1001 N Some Rd</Address> > > > > <City>Somewhere</City><State>PA</State><Zip>15063- > 1404</Zip><Country>US</Country> > > </Result> > > > > Could this have formatted just as well as: > > > > <Result><precision>address</precision><Latitude>39.931085</Latitude> > > <Longitude>-77.387943</Longitude><Address>1001 N Some Rd</Address> > > > > <City>Somewhere</City><State>PA</State><Zip>19063- > 1404</Zip><Country>US</Country> > > </Result> > > > > or > > > > <Result precision="address" Latitude="39.931085" Longitude="- > 77.387943" > > Address="1001 N Some Rd" City="Somewhere" State="PA" Zip="19063- > 1404" > > Country="US"></Result> > > > > > > George Gallen > > Senior Programmer/Analyst > > Accounting/Data Division, EDI Administrator > > [email protected] > > ph:856.848.9005 Ext 220 > > The Wyanoke Group > > http://www.wyanokegroup.com > > > > > > > > _______________________________________________ > > U2-Users mailing list > > [email protected] > > http://listserver.u2ug.org/mailman/listinfo/u2-users > > > _______________________________________________ > U2-Users mailing list > [email protected] > http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
