So, with return dict() and generic.xml view is impossible to produce attribute in a xml tag? Just to stop looking in this way for solution.
Thanks Massimo. On 23 окт, 22:53, Massimo Di Pierro <[email protected]> wrote: > You can make a myxml.html view that contains: > > <?xml version="1.0" encoding="UTF-8"?> > <document> > <itemtitle hello='world'>{{=itemtitle}}</itemtitle> > <itemvalue>{{=itemvalue}}</itemvalue> > </document> > > On Oct 23, 5:09 am, KMax <[email protected]> wrote: > > > Hello, > > Please help with exporting some dict to .xml view with attributes > > inside tags. > > > Like: > > > <?xml version="1.0" encoding="UTF-8"?> > > <document> > > <itemtitle hello='world'>Title</itemtitle> > > <itemvalue>Value</itemvalue> > > </document> > > > I am talking about "hello='world'" in the itemtitle tag. > > I know, I could do it with TAG, but how to make it using regular > > dict() return? > > i mean: > > def myxml(): > > return dict(itemtitle='Title',itemvalue='Value) > > > I fail tring to get it works with attribute inside the tag. > > > Any Ideas? > > > Thanks in advance. > > -- > > Maxim Kostrikin

