- Home /
Question by
DanickCyb · Dec 09, 2015 at 09:03 AM ·
xmlxmlserializer
how can i read this simple xml file ?
Hi, I've read almost every thread about reading xml document but none of them fit my document. As you can see, there is only node and no child node and everything I do doesnt work!
<?xml version="1.0"?>
<tiles>
<tile posx="17" posy="34" posz="0" house="false" isPZ="false" ID="103">
<items>
<item ID="2463" />
</items>
</tile>
<tile posx="17" posy="35" posz="0" house="false" isPZ="false" ID="103">
<items>
<item ID="2464" />
</items>
</tile>
<tile posx="18" posy="34" posz="0" house="false" isPZ="false" ID="103">
<items />
</tile>
<tile posx="18" posy="35" posz="0" house="false" isPZ="false" ID="103">
<items />
</tile>
</tiles>
Comment
if you google "read xml file unity3d" you can find lot of threads which will help you . This thread got lot of discussions and also code snippets for the same.
Show something code you've tried that doesn't work, and maybe we can help from there.
Your answer
![](https://koobas.hobune.stream/wayback/20220612051827im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
WebGL XML parsing error "InvalidOperationException" 0 Answers
Saving new children/subchildren in XML 0 Answers
How can I serialize and deserialize XMLs with special characters? 0 Answers
RTS Import XML 1 Answer
Read AND Write to XML at runtime 1 Answer