Tagged Questions
2
votes
3answers
909 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 ...
1
vote
1answer
77 views
Refactoring xpath input desgin
I want to design API which could handle XPATH input from user.
Currently i have model the XPATH input in following way,
public interface ICondition {
String getConditionString();
}
public class ...
3
votes
2answers
440 views
First Java Swing program
This is my first forray into Java Swing and it's not exactly pretty. I have quite a few methods, and a lot of stuff going on (XML parsing, data conversion, etc) and I'm just wondering what kind of ...
1
vote
1answer
286 views
Quickly put together a reusable configuration reader for Java. Looking for suggestions to improve
This is related to a question I posted on StackOverflow Java: reading Xml configuration and applying to an object, what's a lightweight, simple solution. The consensus was to use JAXB, which is what ...
2
votes
1answer
818 views
Simple XML Creator in Java
package xml.impl;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashMap;
public class XMLCreator {
private String parent;
private String child;
private Integer ctr = ...
2
votes
0answers
238 views
Processing XML configuration which stores regular expressions and format strings for a documentation tool
I'm investigating some feature for the ScalaDoc tool, which would allow library writers to link to documentation created by third party tools like JavaDoc.
My idea is to have some (XML) configuration ...
10
votes
1answer
14k views
JAXB XJC code generation - adding @XmlRootElement and Joda DateTime
Here's an interesting scenario that I encountered the other day. I did eventually reach a solution on my own. However, I'd welcome any comments and better approaches.
The requirements
I want to ...