beckchr / staxon

JSON via StAX
107 stars 47 forks source link

Add custom fieldPrefix and contentField in JsonXMLConfig #41

Closed tdegueur closed 7 years ago

tdegueur commented 7 years ago

Allows to configure how Staxon converts XML attributes and plain text to Json fields. The default behaviour ("@" for attributes, "$" for plain text) remains unchanged.

beckchr commented 7 years ago

Thanks! I already added a textProperty config parameter locally. Having the ability to configure the attribute prefix is also a good thing. I'll probably add your changes manually.

beckchr commented 7 years ago

I incorporated your changes. I named the config properties "textProperty" and "attributePrefix".

tdegueur commented 7 years ago

I agree that my configuration properties were poorly named :) Happy to help.