Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: parsing Numerous large XML response msgs in java, no send back

  1. #1
    Junior Member
    Join Date
    Dec 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default parsing Numerous large XML response msgs in java, no send back

    I have been away from java for some time (10 yrs), and have looked around for a way to:

    - submit a legal/perfect XML formatted 'response' as a template (abstract the values) or as is w/ values retained, but all strings.
    - step 1--get from that a depth #, to allow you to submit the appropriate type variable(s)
    - step 2--submit the XML w/ appropriate variables, w/ output being a fully parsed out XML with filled in supplied variables and even java data classes &/or with java getters/setters for same, actual code.
    - step 3-- or numerous calls to get various bits of data/code from the lib.


    but a friend says no such thing exists, maybe jackson is the best solution, i have not seen a solution like i desire either.

    this seems such an almost obvious general problem that some set of libraries or a smart editor or something should help automate such a tedious and fairly brainless problem-parsing XML messages.

    XML formatting is so hard structured that this seems like a gimme problem to solve, or maybe i am missing something ?

    ps: if you care, this is for a TDAmeritrade stock trading app, you speak regular POST/GET on input, but it responds w/ many diff XML responses (& possible ERRORS) and the XML size can be enormous if you are asking for say 100+ stock quotes (but redundant of course), so somewhat non-trival, but XML is so damn tedious & ZERO satisfaction quotient when done !!

    pps: i do not want to spend much time on this, hoping for some automation, as the TDA api is supposed to change soon to using json, so the XML stuff will only be short lived, i ASSume.

    Thanks for a delightful answer/solution !!
    Last edited by CodePigSlave; December 30th, 2017 at 06:51 PM.

Similar Threads

  1. Inserting Large XML file into Oracle Database through java
    By hari_582 in forum JDBC & Databases
    Replies: 4
    Last Post: April 15th, 2012, 06:49 AM
  2. Inserting Large XML file into Oracle Database through java
    By hari_582 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 15th, 2012, 03:41 AM
  3. Inserting Large XML file into Oracle Database through java
    By hari_582 in forum JDBC & Databases
    Replies: 0
    Last Post: April 14th, 2012, 03:19 PM
  4. Java XML Parsing
    By nimilc2002 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 9th, 2011, 10:00 AM
  5. java xml-rpc response parsing to xml
    By kievari in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: November 19th, 2009, 01:36 PM