Jiechuan Chen

Results 17 comments of Jiechuan Chen

@sivavijay13 @wburon I encountered the same problem the other day, and here's how I solved it: `cd /var/lib/docker/volumes/pulsarui/_data/postgresql` `cat pg_hba.conf` This is the configuration you may wanna look into. ![微信图片_20200714162053](https://user-images.githubusercontent.com/32405587/87407354-a0483400-c5f4-11ea-8df6-ec87d69f8d33.png)...

`-` attribute can only be used to generate text node. You can use the following way to generate the correct child node: ```javascript let a = [{ bar: 1 },...

> I have a similar issue except my output needs to be something along the lines of: > > ```xml > > > > > 1 > 2 > 3...

You can try overload the `ontext()`method, for example" ```javascript const parser = new xml2js.Parser({ explicitArray: false }); const ontextFun = parser.saxParser.ontext; parser.saxParser.ontext = function (text) { console.log(text); ontextFun(text); } parser.parseStringPromise(`This...

Currently, xml2js only supports adding attribute to XML in this form: ```javascript const root = { urlset: { $: { xmlns: 'http://www.sitemaps.org/schemas/sitemap/0.9' }, url: "node1", url2: "node2", url3: "node3" }...

Here's a simple demo I wrote. You can take it as a reference :) `tagNameProcessor ` is executed when entering a node while `validator ` is executed when leaving a...

It would probably be better to use `attrValueProcessors` if you want to access attribute. For example, , the following demo which uses `attrValueProcessors` can extract node1's name="" ```javascript const root...