What do you mean by “stream xml transforms? ?
Do you mean stream a single large XML file ? A series of XML files, or stream a file thru a series of XQuery|XSLT|XPath transforms.
Depends on what you mean by “stream” .
I don’t believe BaseX uses a streaming XML parser, so probably can’t handle streaming a single large XML file and produce output before it’s parsed the complete file.
But it looks like, from the link in your stackoverflow post that the data is already sharded into a collection of separate XML files that each contain multiple <page> elements.
— Steve M.
On Feb 23, 2020, at 10:31 AM, maxzor maxzor@maxzor.eu wrote:
Hello,
Thank you for your software which GUI has been my savior every time I needed to deal with XML.
I would like to know if I can stream xml transforms, to pipe wikimedia XML dumps into a format acceptable by postgres copy ? I know very well SQL, but nothing about XPath or XQuery
I managed to mock a XPath (or is it XQuery ? :/) snippet from postgres itself, but obviously this would need rewriting for basex CLI : https://stackoverflow.com/questions/60361030/how-to-transform-and-stream-lar...
Best regards, Maxime Chambonnet