• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Schema validation for inputs with no namespace

 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my schema file, I declare an element of the sort:

Now when I receive an input that looks like this:

it would not validate this and return it as invalid because I did not specify the namespace. Our clients are expected to send in their files via a socket and it will come in without the xmlns declaration. I'm thinking of modifying the input stream to add the namespace declaration. Is there any other alternatives ?

Regards,

Pho
[ July 12, 2004: Message edited by: Pho Tek ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would look into writing an XSLT stylesheet which transforms the incoming no-namespace elements into namespace'd elements.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic