From: Thomas W. <tho...@gm...> - 2011-03-17 12:05:28
|
Wolfgang, If we change the existing backup function to take more then one collection element I guess that will do the job. Thomas ------ Thomas White Mobile:+44 7711 922 966 Skype: thomaswhite gTalk: thomas.0007 http://www.linkedin.com/in/thomaswhite0007 http://www.facebook.com/thomas.0007 2011/3/17 Wolfgang Meier <wol...@ex...> > Hi Jens, > > the backup utility will always output the XML as it is stored in > eXist. No indenting is applied. > > I think we could provide a script which just dumps a certain > collection to disk and indents the XML. I'll try to write one. > > Wolfgang > > > 2011/3/17 Jens Østergaard Petersen <oe...@gm...>: > > Hi Joe, > > > > I don't know if this leads anywhere, but when I move my Mac eXist binary > to Ubuntu and run it there, the problem is the same. > > > > I have also tried starting from scratch in Ubuntu. I check out trunk in > Ubuntu 10.10 (Xubunu), format and indent an xml file inside "library," > build, thereby also building library-1.0.xar with the formatted and indented > file included, install the library app, export the file in question - and it > is "flat" in Ubuntu as well. Does not look to me like it has anything to do > with Mac OS. > > > > If I insert character references (I tried " ") following the Unix > LF's in my document, the Admin Client output is indented correctly (if have > only tried this in Mac OS). Doesn't this show that the problem has something > to do with the serialisation made upon export? The question is not simply > one of whitespace normalisation, since all whitespace between tags is > stripped. I have tried with LF, CRLF and CR - it's all the same. > > > > I hope you can help - if with nothing else than you have the same > problem! > > > > Best, > > > > Jens > > > > On Mar 16, 2011, at 12:26 PM, Joe Wicentowski wrote: > > > >> Hi Jens, > >> > >> Looks like this app is really making nice progress! But it also seems > >> like you're still having difficulties getting *indented* XML out of > >> eXist. Perhaps we can help provide some suggestions? Could you > >> describe how you're doing this currently? > >> > >> Joe > >> > >> > >>> -<collection xmlns="http://exist-db.org/collection-config/1.0"> > >>> - <index> > >>> - <fulltext default="none" attributes="no"/> > >>> - <lucene/> > >>> - <create qname="value" type="xs:string"/> > >>> - <create qname="label" type="xs:string"/> > >>> - <create qname="valueTwo" type="xs:string"/> > >>> - <create qname="valueTerm" type="xs:string"/> > >>> - <create qname="classifier" type="xs:string"/> > >>> - <create qname="scriptClassifier" type="xs:string"/> > >>> - <create qname="frequencyClassifier" type="xs:string"/> > >>> - <create qname="nameOrder" type="xs:string"/> > >>> - </index> > >>> -</collection> > >>> \ No newline at end of file > >>> +<collection xmlns="http://exist-db.org/collection-config/1.0"><index><fulltext > default="none" attributes="no"/><lucene/><create qname="value" > type="xs:string"/><create qname="label" type="xs:string"/><create > qname="valueTwo" type="xs:string"/><create qname="valueTerm" > type="xs:string"/><create qname="classifier" type="xs:string"/><create > qname="scriptClassifier" type="xs:string"/><create > qname="frequencyClassifier" type="xs:string"/><create qname="nameOrder" > type="xs:string"/></index></collection> > >>> \ No newline at end of file > > > > > > > ------------------------------------------------------------------------------ > > Colocation vs. Managed Hosting > > A question and answer guide to determining the best fit > > for your organization - today and in the future. > > http://p.sf.net/sfu/internap-sfd2d > > _______________________________________________ > > Exist-commits mailing list > > Exi...@li... > > https://lists.sourceforge.net/lists/listinfo/exist-commits > > > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Exist-development mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-development > |