Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Construct XML not work correctly #10

Open
kiri11ko opened this issue Jul 30, 2019 · 1 comment
Open

Construct XML not work correctly #10

kiri11ko opened this issue Jul 30, 2019 · 1 comment

Comments

@kiri11ko
Copy link

kiri11ko commented Jul 30, 2019

let newXML = LocalDataModelXML.newTasksXML!
            newXML.addChild(XML(string: tasks))

If construct XML from existing XML new tag added new tag and not parse new tag.
After parse final xml view one first tag

<Doc StatusDoc="new" >
	<clientsTasks>
		<clientTask description="Dsdsd" persone="Гребенкина Анастасия" date="1562290361.0" id_client="000006383" name="Dodd’s" />
	</clientsTasks>
	<clientsTasks>
		<clientTask description="Dsdsd" date="1562463999.0" id_client="000006383" persone="Гребенкина Анастасия" name="dsdsdds" />
	</clientsTasks>
	<clientsTasks>
		<clientTask name="dsdsdds" description="Dsdsd" date="1562463999.0" id_client="000006383" persone="Гребенкина Анастасия" />
	</clientsTasks>
	<clientsTasks>
		<clientTask date="1562463999.0" persone="Гребенкина Анастасия" description="Dsdsd" id_client="000006383" name="dsdsdds" />
	</clientsTasks>
	<clientsTasks>
		<clientTask id_client="000006383" name="dsdsdds" date="1562463999.0" persone="Гребенкина Анастасия" description="Dsdsd" />
	</clientsTasks>
	<clientsTasks>
		<clientTask persone="Гребенкина Анастасия" date="1562207178.0" description="dsdsd" id_client="000006383" name="dsdsd" />
	</clientsTasks>
	<clientsTasks>
		<clientTask date="1562121435.0" description="Hello" persone="Казакова Анастасия" name="test update view" id_client="000006383" />
	</clientsTasks>
</Doc>
@chenyunguiMilook
Copy link
Owner

Hi, @kiri11ko, can you post full code, so I can better understand your question!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants