-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to convert XML to JSON in an external reference #29
Comments
What happens when you try?
…On Apr 9, 2017 11:56 AM, "Realybig" ***@***.***> wrote:
why doesn't working this code?
test.xml
<xml><a>It Works!</a></xml>
html code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title> <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script> <script src="js/xmltojson.js"></script>
</head>
<body> <script> $.ajax({ url:'test.xml', type:'GET', datatype:'xml', success:function(data){ console.log(data) testString = data; result = xmlToJSON.parseString(testString); // parse console.log(result) }, error:function(){ console.log('error') } }) </script>
</body>
</html>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#29>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFAjfNVeliRNli93mflhyeRIKfpdLGjgks5ruP-8gaJpZM4M4EJG>
.
|
The Let me know if that works for you. |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why doesn't working this code?
test.xml
html code
The text was updated successfully, but these errors were encountered: