Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Xzapo · May 26, 2015 at 01:21 PM · c#stringxmlconversion

How To Switch A XmlNodeList To A String

So I am currently trying to find a game objects tag through the data I am extracting from my XML. But GameObject.FindGameObjectsWithTag does not take in XMLNodeList, so I am trying to convert the XMLNodeList Data to a string. But I am really new to C# and how it works with XML so I am pretty confused on how to go about this since simply creating a String and setting it equal to the XMLNodeList does not work, I'm really not to sure how to go about it. Here's where I'm extracting the XML, not sure if this would help explain on how I should go about it.

     XmlDocument newXml = new XmlDocument ();
         newXml.Load(Application.dataPath + "/Script/keno.xml"); 
         print ("xml loaded");
 
         XmlDocument xmlDoc = new XmlDocument();
         numList = xmlDoc.GetElementsByTagName("KenoNumbers/numbers");
 
         print (numList[0]); 
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Thewhiteaura · May 26, 2015 at 02:02 PM

I haven't looked too much into this topic as of yet, but I came across a couple of links that i saved for reference while figuring out php, I hope these can be of help to you.

-Here is generating an xml file, which it seems you have already done, although this is through php- http://stackoverflow.com/questions/486757/how-to-generate-xml-file-dynamically-using-php

-And here is read string as xml to show list-
http://answers.unity3d.com/questions/273324/read-string-as-xml-to-show-list.html

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Xzapo · May 26, 2015 at 03:14 PM 0
Share

Thanks for the help! But that didn't really help me solve the issue, much appreciated though!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

Fastest C# Byte[] to String conversion? 1 Answer

Converting string of a key into KeyCode 2 Answers

Multiple Cars not working 1 Answer

I want to convert image data(Texture2D) to Base64 string and store in JSON file in Unity3D(C#). 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges