All Questions
14 questions
6
votes
1
answer
341
views
Simple XML string to user-friendly plain text converter method in Java
I want to write a simple method in Java to convert XML to some user-friendly plain format (like YAML, etc.).
Attributes, null, empty or zero values should not be taken into account. Also, documents ...
0
votes
1
answer
106
views
Retrieve data from an XML file in Java
few months back I did a code test for a company and I quickly managed to solve it within 5-10 minutes. But, I got rejected because it wasnt "good enough".
What is good enough? they said its ...
5
votes
4
answers
4k
views
Make my XML Parser in Java using WoodStox run faster and use less memory, or just generally better
I have an XML Parser in Java using WoodStox that I wrote. This parser is going to be parsing through extremely large files, could be 5+GB. The goal of the parser is to convert a nest XML file into a ...
3
votes
1
answer
2k
views
XML Parser written in Java
Accepts a String (or a char array) as an input and stores the data in a tree structure.
For example, given the input:
...
2
votes
0
answers
44
views
XML Input Parser To Load Test Data into Dev Database
I wrote an XML input transformer to ingest data from test directory and essentially store anything into a DB table. I attempted to make this as generic as possible.
I'm new to Java and also realize ...
1
vote
1
answer
182
views
Building DOM tree from XML, checking/updating player's average score
This is the first time I'm parsing an XML file. So I will be grateful for any suggestions on how my code may be improved. Or if you could suggest another approach to solving this problem.
One other ...
2
votes
1
answer
103
views
Java class that parses Shoutcast stats XML
I have written a Java class that parses Shoutcast 2 stats XML. It uses JDOM to parse the XML. I have only basic knowledge of Java and I wrote this class in about 3 hours. It works, but I don't know if ...
4
votes
1
answer
372
views
Android XML parser to parse themes
I used XML to control the theme of an InputMethod for Android. A theme in XML contains the color and the shape of keys.
XML file
...
5
votes
1
answer
2k
views
XML parsing in Java using SAX parser
I have started learning XML parsing in Java (currently reading Java & XML by Brett McLaughlin). Here is my first program to parse XML using SAX parser. Please review the code and let me know if ...
6
votes
1
answer
473
views
Extraction of data from Flickr
I'm crawling Flickr for data for my university research project. However it's very slow and I'm not sure what it is exactly. It could be the FileWriter slowing it ...
2
votes
2
answers
1k
views
DOM parser implemented from scratch
I have implemented a DOM parser. I would like any comments for optimizing, improving, and making the code coherent to best coding practices.
...
3
votes
3
answers
55k
views
Better way to get the XML attribute value?
I have an xml file from which I want to extract the value of attribute custName from the very first child. The code below works where I am using the dom parser. Is ...
3
votes
3
answers
6k
views
Parse an XML file using objects / methods
So I spent a while this morning creating an xml parser in java which is part of a job interview. I would love to have some people tear it apart so I can learn from any mistakes that I made so I can ...
7
votes
3
answers
3k
views
Handling various types of nodes when traversing a DOM tree
How to minimize the following code using java's features ... looking for some workaround with the switch-case statement
I've seen several question regarding switch-case design pattern / best ...