You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use getElementsByTagName to retrieve values from the document, but that function is case-sensitive for XML documents, unfortunately. What we can do instead is iterate the nodes in the document and check the node names with a case-insensitive regex.
The text was updated successfully, but these errors were encountered:
Yes, your approach looks reasonable. You might want to iterate through xml.childNodes instead of querying for all elements. Check the document structure as you go, for example, you can find the TileSets element first, then find the TileSet elements inside. The current code doesn't necessary process the data in document order.
Mentioned on the group: https://groups.google.com/d/msg/cesium-dev/5u0HprX3WQs/6nFctSXdQhYJ
We use
getElementsByTagName
to retrieve values from the document, but that function is case-sensitive for XML documents, unfortunately. What we can do instead is iterate the nodes in the document and check the node names with a case-insensitive regex.The text was updated successfully, but these errors were encountered: