Android java xml very long to json












0














I have to convert a very long xml file to a json.



I tried the following libraries, but none of them seems to work.



 - org.json:json:20180813 
- com.github.javadev:underscore:1.38


Type file xml: here










share|improve this question






















  • Programmatically?
    – Skizo-ozᴉʞS
    Nov 11 at 20:07










  • @Skizo-ozᴉʞS: You intend to completely write a parse in java that allows you to convert an xml to json file.
    – Paul
    Nov 11 at 20:27










  • Apple´s with apple´s.., Try work with XMLPullParser check this developer.android.com/reference/org/xmlpull/v1/XmlPullParser
    – Daniel Carreto
    Nov 11 at 20:28










  • What does "very long" mean? 1Mb? 1Gb? 1Tb?
    – Michael Kay
    Nov 11 at 23:05










  • Not so heavy, we're talking about 200 KB. Example file is this: pastebin.com/raw/ExP2Mm2k
    – Paul
    Nov 12 at 11:30
















0














I have to convert a very long xml file to a json.



I tried the following libraries, but none of them seems to work.



 - org.json:json:20180813 
- com.github.javadev:underscore:1.38


Type file xml: here










share|improve this question






















  • Programmatically?
    – Skizo-ozᴉʞS
    Nov 11 at 20:07










  • @Skizo-ozᴉʞS: You intend to completely write a parse in java that allows you to convert an xml to json file.
    – Paul
    Nov 11 at 20:27










  • Apple´s with apple´s.., Try work with XMLPullParser check this developer.android.com/reference/org/xmlpull/v1/XmlPullParser
    – Daniel Carreto
    Nov 11 at 20:28










  • What does "very long" mean? 1Mb? 1Gb? 1Tb?
    – Michael Kay
    Nov 11 at 23:05










  • Not so heavy, we're talking about 200 KB. Example file is this: pastebin.com/raw/ExP2Mm2k
    – Paul
    Nov 12 at 11:30














0












0








0


1





I have to convert a very long xml file to a json.



I tried the following libraries, but none of them seems to work.



 - org.json:json:20180813 
- com.github.javadev:underscore:1.38


Type file xml: here










share|improve this question













I have to convert a very long xml file to a json.



I tried the following libraries, but none of them seems to work.



 - org.json:json:20180813 
- com.github.javadev:underscore:1.38


Type file xml: here







java android json xml






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 11 at 20:02









Paul

127210




127210












  • Programmatically?
    – Skizo-ozᴉʞS
    Nov 11 at 20:07










  • @Skizo-ozᴉʞS: You intend to completely write a parse in java that allows you to convert an xml to json file.
    – Paul
    Nov 11 at 20:27










  • Apple´s with apple´s.., Try work with XMLPullParser check this developer.android.com/reference/org/xmlpull/v1/XmlPullParser
    – Daniel Carreto
    Nov 11 at 20:28










  • What does "very long" mean? 1Mb? 1Gb? 1Tb?
    – Michael Kay
    Nov 11 at 23:05










  • Not so heavy, we're talking about 200 KB. Example file is this: pastebin.com/raw/ExP2Mm2k
    – Paul
    Nov 12 at 11:30


















  • Programmatically?
    – Skizo-ozᴉʞS
    Nov 11 at 20:07










  • @Skizo-ozᴉʞS: You intend to completely write a parse in java that allows you to convert an xml to json file.
    – Paul
    Nov 11 at 20:27










  • Apple´s with apple´s.., Try work with XMLPullParser check this developer.android.com/reference/org/xmlpull/v1/XmlPullParser
    – Daniel Carreto
    Nov 11 at 20:28










  • What does "very long" mean? 1Mb? 1Gb? 1Tb?
    – Michael Kay
    Nov 11 at 23:05










  • Not so heavy, we're talking about 200 KB. Example file is this: pastebin.com/raw/ExP2Mm2k
    – Paul
    Nov 12 at 11:30
















Programmatically?
– Skizo-ozᴉʞS
Nov 11 at 20:07




Programmatically?
– Skizo-ozᴉʞS
Nov 11 at 20:07












@Skizo-ozᴉʞS: You intend to completely write a parse in java that allows you to convert an xml to json file.
– Paul
Nov 11 at 20:27




@Skizo-ozᴉʞS: You intend to completely write a parse in java that allows you to convert an xml to json file.
– Paul
Nov 11 at 20:27












Apple´s with apple´s.., Try work with XMLPullParser check this developer.android.com/reference/org/xmlpull/v1/XmlPullParser
– Daniel Carreto
Nov 11 at 20:28




Apple´s with apple´s.., Try work with XMLPullParser check this developer.android.com/reference/org/xmlpull/v1/XmlPullParser
– Daniel Carreto
Nov 11 at 20:28












What does "very long" mean? 1Mb? 1Gb? 1Tb?
– Michael Kay
Nov 11 at 23:05




What does "very long" mean? 1Mb? 1Gb? 1Tb?
– Michael Kay
Nov 11 at 23:05












Not so heavy, we're talking about 200 KB. Example file is this: pastebin.com/raw/ExP2Mm2k
– Paul
Nov 12 at 11:30




Not so heavy, we're talking about 200 KB. Example file is this: pastebin.com/raw/ExP2Mm2k
– Paul
Nov 12 at 11:30












1 Answer
1






active

oldest

votes


















0














why don't you use online XML to JSON Converter? It is working for your xml file






share|improve this answer





















  • The problem is that every day I have to do it, convert an xml to json. Through an http call I have to recover a very long xml file and convert it to json. For this, I look for a solution for android java.
    – Paul
    Nov 11 at 20:26










  • have you tried the suggestions of stackoverflow.com/questions/1823264/…
    – Brokkoli 71
    Nov 11 at 20:28










  • As I said I already tried the following solution: stackoverflow.com/a/1823328/8024296 It seems to conflict with the normal org.json library.
    – Paul
    Nov 11 at 20:43











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53252689%2fandroid-java-xml-very-long-to-json%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














why don't you use online XML to JSON Converter? It is working for your xml file






share|improve this answer





















  • The problem is that every day I have to do it, convert an xml to json. Through an http call I have to recover a very long xml file and convert it to json. For this, I look for a solution for android java.
    – Paul
    Nov 11 at 20:26










  • have you tried the suggestions of stackoverflow.com/questions/1823264/…
    – Brokkoli 71
    Nov 11 at 20:28










  • As I said I already tried the following solution: stackoverflow.com/a/1823328/8024296 It seems to conflict with the normal org.json library.
    – Paul
    Nov 11 at 20:43
















0














why don't you use online XML to JSON Converter? It is working for your xml file






share|improve this answer





















  • The problem is that every day I have to do it, convert an xml to json. Through an http call I have to recover a very long xml file and convert it to json. For this, I look for a solution for android java.
    – Paul
    Nov 11 at 20:26










  • have you tried the suggestions of stackoverflow.com/questions/1823264/…
    – Brokkoli 71
    Nov 11 at 20:28










  • As I said I already tried the following solution: stackoverflow.com/a/1823328/8024296 It seems to conflict with the normal org.json library.
    – Paul
    Nov 11 at 20:43














0












0








0






why don't you use online XML to JSON Converter? It is working for your xml file






share|improve this answer












why don't you use online XML to JSON Converter? It is working for your xml file







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 11 at 20:09









Brokkoli 71

285




285












  • The problem is that every day I have to do it, convert an xml to json. Through an http call I have to recover a very long xml file and convert it to json. For this, I look for a solution for android java.
    – Paul
    Nov 11 at 20:26










  • have you tried the suggestions of stackoverflow.com/questions/1823264/…
    – Brokkoli 71
    Nov 11 at 20:28










  • As I said I already tried the following solution: stackoverflow.com/a/1823328/8024296 It seems to conflict with the normal org.json library.
    – Paul
    Nov 11 at 20:43


















  • The problem is that every day I have to do it, convert an xml to json. Through an http call I have to recover a very long xml file and convert it to json. For this, I look for a solution for android java.
    – Paul
    Nov 11 at 20:26










  • have you tried the suggestions of stackoverflow.com/questions/1823264/…
    – Brokkoli 71
    Nov 11 at 20:28










  • As I said I already tried the following solution: stackoverflow.com/a/1823328/8024296 It seems to conflict with the normal org.json library.
    – Paul
    Nov 11 at 20:43
















The problem is that every day I have to do it, convert an xml to json. Through an http call I have to recover a very long xml file and convert it to json. For this, I look for a solution for android java.
– Paul
Nov 11 at 20:26




The problem is that every day I have to do it, convert an xml to json. Through an http call I have to recover a very long xml file and convert it to json. For this, I look for a solution for android java.
– Paul
Nov 11 at 20:26












have you tried the suggestions of stackoverflow.com/questions/1823264/…
– Brokkoli 71
Nov 11 at 20:28




have you tried the suggestions of stackoverflow.com/questions/1823264/…
– Brokkoli 71
Nov 11 at 20:28












As I said I already tried the following solution: stackoverflow.com/a/1823328/8024296 It seems to conflict with the normal org.json library.
– Paul
Nov 11 at 20:43




As I said I already tried the following solution: stackoverflow.com/a/1823328/8024296 It seems to conflict with the normal org.json library.
– Paul
Nov 11 at 20:43


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53252689%2fandroid-java-xml-very-long-to-json%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Coverage of Google Street View

Full-time equivalent

Surfing