This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XML Schema validation for inputs with no namespace  RSS feed

 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • 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
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!