Search:

Type: Posts; User: Json

Search: Search took 0.11 seconds.

  1. Thread: XML with SAX

    by Json
    Replies
    6
    Views
    2,120

    Re: XML with SAX

    Its an alternative as I'm not fully aware of the design and requirements of your project.

    A list will at the end of the day always just be a list, however a map will is a list where you...
  2. Thread: XML with SAX

    by Json
    Replies
    6
    Views
    2,120

    Re: XML with SAX

    You could of course use a map for this.



    final Map<String, Carrier> carriers = new HashMap<String, Carrier>();

    public void addCarrier() {
    carriers.put(carrier.getName(),...
  3. Thread: XML with SAX

    by Json
    Replies
    6
    Views
    2,120

    Re: XML with SAX

    I wrote this little snippet for you.



    import java.io.File;
    import java.io.IOException;
    import java.util.List;

    import org.jdom.Document;
    import org.jdom.Element;
Results 1 to 3 of 3