Hello,

My server gets an XML as inputs from its clients. Part
of the security checks are schema validations (to see
that the XML is valid).

Therefore, I need a to perform schema regardless what
is written in teh document.

What I did is the following:

1. Loaded a cacheed schema via parser.LoadSchema()
2. Set an external schema location

Doing that helped me to verify the XML only if it
explicitly includes the namespace and schema (xmlns,
xsi:schemaLocation).

>From security reasons I would like to ignore any
namespace/schemaLocation that was specified in teh XML
and use only my pre-defined XSD.

Does anyone has any suggestions? 
How can I tell Xerces-C to ignore the
namespaceds/schemas that are writtens in the XML and
use pre-determined ones?

regaeds,
Yair



 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

Reply via email to