You need a root level XML tag...it should be like this: <mx:Model id="CheckModel"> <myData> <StreetNum>{propNum.text}</StreetNum> <Street>{propStreet.text}</Street> <City>{propCity.text}</City> <State>{propState.text}</State> <Zip>{propZip.text}</Zip> <Price>{propPrice.text}</Price> <ListDate>{listDate.text}</ListDate> <ExpDate>{expDate.text}</ExpDate> </myData> </mx:Model> --- In flexcoders@yahoogroups.com, "Jeremy Rottman" <[EMAIL PROTECTED]> wrote: > > I have just gotten Flex 2, and I am trying to convert my code from > f2b3, and I have run into this error on my vaidation. > > I keep getting this error: Only one root tag is allowed. > > I get this on my models I use for validation. Here is a sample of on > of my models. Anyone know how I can fix this? > > <!-- VALIDATOR MODEL --> > <mx:Model id="CheckModel"> > <StreetNum>{propNum.text}</StreetNum> > <Street>{propStreet.text}</Street> > <City>{propCity.text}</City> > <State>{propState.text}</State> > <Zip>{propZip.text}</Zip> > <Price>{propPrice.text}</Price> > <ListDate>{listDate.text}</ListDate> > <ExpDate>{expDate.text}</ExpDate> > </mx:Model> >
------------------------ Yahoo! Groups Sponsor --------------------~--> Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/