knadh / xmlutils.py

Python scripts for processing XML documents and converting to SQL, CSV, and JSON [UNMAINTAINED]
http://nadh.in/code/xmlutils.py
MIT License
242 stars 140 forks source link

can't convert from string #31

Open ashwin31 opened 8 years ago

ashwin31 commented 8 years ago

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.

knadh commented 8 years ago

Your post is incomplete.

ashwin31 commented 8 years ago

@knadh I have updated description.Please check

knadh commented 8 years ago

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

ashwin31 commented 8 years ago

It would be good if you support string conversion too.

knadh commented 8 years ago

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

ashwin31 commented 8 years ago

Thank you @knadh

fakejig commented 1 year ago

any luck?