The transform feature can't help here, it does not support converting elements such as entry/key to attributes such as entry/@key...
Cheers, Sergey On Tue, Mar 15, 2011 at 1:46 AM, KARR, DAVID (ATTSI) <[email protected]> wrote: > I was trying to get something like this: > > > > <entries> > > <entry key="c">d</entry> > > <entry key="a">b</entry> > > </entries> > > > > What I get with the workaround is this: > > > > <entries> > > <entry> > > <key xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs=" > http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">c</key> > > <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">d</value> > > </entry> > > <entry> > > <key xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs=" > http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">a</key> > > <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">b</value> > > </entry> > > </entries> > > > > I imagine there should be a straightforward way to get those namespaces on > the root element, instead of repeated here, but I haven’t looked at that > yet. > >
