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.
|