• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAXB XML Processing  RSS feed

 
Srikar Kummamuri
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IS it possible to process only a part of XML by binding a part of XML as input using the JAXB? My problem heare is, I need to process large XML documents and i need to process only a part of the XML document and the rest can be wtiten out without processing. I am using JAXB and binf the XML.

Thanks
Sri
 
Paul Clapham
Sheriff
Posts: 22374
42
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Sri", welcome to the JavaRanch.

We're friendly here, but we do require members to have valid display names.

Display names must include your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names will be deleted.
 
Srikar Kummamuri
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the advise. I will change display name by including my last name. Sri is my first name actually, Srikaramurthy is my first name and everybody calls me Sri and it became my first name and i will include last name now. Let me know if i am not allowed to use Sri as my name since it is the name most people use to call me.

Thanks
Sri.
 
Srikar Kummamuri
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, I changed my name to Srikar Kummamuri. Thanks for the advise.
 
Paul Clapham
Sheriff
Posts: 22374
42
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Sri. (Yes, as you suggest "Sri" does look a bit peculiar for the first name of somebody from your part of the world and it could be misunderstood. So "Srikar" is fine, thank you.)

As for your question: you would have to have some process for extracting the part of the XML document you are interested in, before giving it to JAXB. This process would most likely involve using a parser, in which case a SAX parser might be best. You could use that to scan through the document and just extract the important information, saving it in a form that JAXB can handle. Then pass that saved information to JAXB.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!