question on XML with prolog

Thursday, 18 August 2016 · 2 messages
WG
Wang, Genneva18 Aug 2016 18:04 #
Hi Christian, As I was testing some xml files, I realized that xml file with prolog, the prolog will always get removed when persisted in basex. Is that the expected behavior? Is there some option that the prologs can be saved along with the xml file ? Any tips would be greatly appreciated. Thanks! Regards, -Genneva
CG
Christian Grün18 Aug 2016 18:07 #
Hi Genneva,
Quoted text · Wang, Genneva · 3 lines
> As I was testing some xml files, I realized that xml file with prolog, the > prolog will always get removed when persisted in basex. Is that the expected > behavior?
Yes it is. There is no way to keep the prolog, but you can custom serialization options to recreate them when returning your documents [1]. Hope this helps, Christian [1] http://docs.basex.org/wiki/Serialization
Quoted text · Wang, Genneva · 7 lines
> Is there some option that the prologs can be saved along with the > xml file ? > > Any tips would be greatly appreciated. Thanks! > > Regards, > -Genneva

⚡Generated with XQuery