Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
For some reason, I need a XML Parser in CopperCube.

eminem100
Guest
Quote
2017-08-01 02:02:31

I want to make a XML Parser, so that, I can access my data quickly, in my game, I've to use my data in every 150ms and connect them to server, if they were arranged in XML data and can be parsed, then half of the problem is solved.


ishmaru
Registered User
Quote
2017-08-01 03:36:22

Why you don't use JSON? Javascript already has parsing ability for that out of the box, but its already in JS Object format so it may be a little easier to use.

If you must use xml try:
parser = new DOMParser();
parser.parseFromString(text,"text/xml");


Read more:
https://www.w3schools.com/xml/xm...


eminem100
Guest
Quote
2017-08-01 14:20:46

But, are these functions available in CC's JS?


eminem100
Guest
Quote
2017-08-01 16:49:17

I've tested, DOMParser(); is not supported by CopperCube. Any other solution? I think it'd be better if we create a function which will parse XML data, and modify the data of the tag if necessary.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact