FasterXML / FasterXML/StaxMate

Add a convenience method for reading "all text values of all child elements"

Aperta
#5 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
45
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

A relatively common case seems to be that of mapping structures like, say:

```

text
...
textN

```

Iterating over this structure is not super hard, but it would be nice to just have a method for "reading it all in", to produce map like:

```
{ "elem1" : "text", ... , "elemN" : "textN" }
```

and then let caller do whatever it needs to. Textual content should probably be simple collected with 'collectDescendantText', to work even if sub-elements were included.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.