Hi, There was a recent post in this group saying that you can specify additional keywords in your protobuf message definition to steer XML de-/ serialization.
http://groups.google.com/group/protobuf/browse_thread/thread/2c1617a2ff4a22d7/5239dea7bee2d653?lnk=gst&q=ATTRIBUTE#5239dea7bee2d653 Don't know if this is realized as an intrinsic protobuf language feature. HTH Günther On 29 Okt., 08:20, chinna <[email protected]> wrote: > Hi, > > could any one help me on how to create attributes for a element in > proto file. > > my sample xml file is like below.. > <search-response duration="230"> > <searched>2294559</searched> > <found>1674</found> > <size>1674</size> > <listref invalidate-timestamp="1256802983912">qqm87msaz0</listref> > - > <search-request case-sensitive="false" relevancy="false" > stemming="false" listref="true" echo="false" body="true" > asynchronous="false" request="true" log-level="error" return- > metainfo="true" documents="true"> > <query type="tip" dataType="fld">ti=(motor and device)</query> > <collections>gbapps</collections> > <return-fields>pn,pd,ti</return-fields> > <offset>0</offset> > <size>20</size> > <filter/> > <summarize/> > <snapshot/> > </search-request> > </search-response> > > i want to create proto file for the above..please help me. > > Thanks in advance. > > regards, > chinna. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~----------~----~----~----~------~----~------~--~---
