• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Receiving an XML file via HTTP-POST and processing it using Stax XML parser

 
Ramprakash Ramamoorthy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I am able to post a .xml file to my servlet via this http://svn.apache.org/viewvc/httpcomponents/oac.hc3x/trunk/src/examples/PostXML.java?view=markup.


How do I receive this in my servlet and manipuate it using the stax xml parser. My assignment is in such a way that I will have to use only the stax parser. Thanks in advance.
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Notice that you have asked two questions. This is the XML forum, so let me answer the XML question. You take the InputStream which your servlet gets from the POST data, and pass it to your Stax parser. If I read the documentation correctly, that would be something like
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic