aspose file tools
The moose likes XML and Related Technologies and the fly likes XML validation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "XML validation" Watch "XML validation" New topic
Author

XML validation

Jomy George
Ranch Hand

Joined: Jan 13, 2011
Posts: 59
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
Bartender

Joined: Oct 14, 2005
Posts: 16480
    
    2

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: XML validation
 
Similar Threads
DOM and SAX
More questions.
Process DOM Document returned by a method.
create xml from xml schema in java
Representing an xml