Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XML validation  RSS feed

 
Jomy George
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

In my server, many types of XML requests come from clients, and I parse it to DOM Document.
Now I found that many of these request from client are comes with invalid credentials (Username, password incorrect), and still I am converting it to DOM Document.

Is there any way to check credentials while parsing XML, so that I can improve performance of server?

Thanks in advanceā€¦
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, that's not what XML parsers are for.

But in a real application you would check the authentication before you even started parsing the XML.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!