xmlutils.py icon indicating copy to clipboard operation
xmlutils.py copied to clipboard

can't convert from string

Open ashwin31 opened this issue 9 years ago • 7 comments

i want to converter xml on the fly like

converter = xml2json(message, encoding="utf-8")

I wanted to convert xml from a variable rather than file as explained in the examples.

ashwin31 avatar Apr 26 '16 17:04 ashwin31

Your post is incomplete.

knadh avatar Apr 27 '16 06:04 knadh

@knadh I have updated description.Please check

ashwin31 avatar Apr 27 '16 06:04 ashwin31

I am afraid you'll have to write your string to a file and then convert it.

knadh avatar Apr 27 '16 07:04 knadh

It would be good if you support string conversion too.

ashwin31 avatar Apr 27 '16 07:04 ashwin31

Yep, will add a patch. I'll leave this issue open until then.

knadh avatar Apr 27 '16 07:04 knadh

Thank you @knadh

ashwin31 avatar Apr 27 '16 07:04 ashwin31

any luck?

fakejig avatar Apr 28 '23 17:04 fakejig