Xml validation with namespace without prefix


hi all,

 

i want validate incoming xml xmlns ok without prefix :

this not works :

<root xmlns="http://mynamespace">

<child1>first child</child1>

<child2>second child</child2>

...

</root>

this works :

<ns0:root xmlns:ns0="http://mynamespace">

<child1>first child</child1>

<child2>second child</child2>

...

</ns0:root>

 

how can validate first xml (without prefix) ?

 

thxxxx

a method, generate xsd xml instance , saw xsd had no xmlns i delete xmlns (defaut namespace) xsd , every thing works !!! have delete this within source of xsd , not in import property box.

 

thxxxxx




BizTalk Server  >  BizTalk Server General



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'