Skip to content

An invalid xml can also be converted to json #16

@xshengh

Description

@xshengh

xml file:

<performance version="1">
	<model name="MTK6771">
	        <scene packageName="common">
		        <subscene SubSceneName="0">
			        <item fd="1111" value="2"></item>
                        </subscene>
		</scene>

It's an invalid xml file without end tag of performance and model. But it can still be converted to a json below:
{"performance":{"model":{"name":"MTK6771","scene":{"packageName":"common","subscene":{"SubSceneName":"0","item":{"fd":"1111","valu e":"2"}}}},"version":"1"}}

Maybe some validation should be done before converting the json.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions