XML to XSD,no name space bound error -


My xml is it, and I have also written xsd. The right way to namespace? Error giving it ** no prefix bound ** There is something to do with namespace

    

And I wrote the XSD error that the "xs" prefix is ​​not bound.

The XSD for reference.

  & lt ;? Xml version = "1.0" encoding = "UTF-8" standalone = "yes"? & Gt; & Lt; xs: schema xlmns: xs = "www.abc.com/AB_2012_09_14" elementFormDefault = "qualified" & gt; & Lt; xs: element name = "cvccodeSwitch" type = "xs: integer" /> & Lt; Xs: element name = "zodiac" type = "x: decimal" /> & Lt; Xs: element name = "transaction date" & gt;    

First of all, your xmlns attribute is not spelled correctly (You typed xlmns , so the Parser complains that the xs prefix is ​​not bound.

If you decide that you have another error Because you do not force the schema elements on your namespace, you have to pair it with the XML Schema namespace:

  : schema xmlns: xs = "http : //www.w3.org/2001/XMLSchema "... & gt;   

A To be eligible for the Type Type, you must declare your namespace targetNamespace and the default xmlns namespace of your schema (this is similar to the namespace in your example): < / P>

  & lt; xs: schema xmlns: xs = "http://www.w3.org/2001/XMLSchema" xmlns = "www.abc.ccom / AB_2012_09_14.xsd" targetNamespace = " In the end, your example will not be valid because, according to schema,  CVCCodeSwitch  element can not be blank (this is an integer Should be). If you change it, then it will be valid:  
  & lt; CVCCodeSwitch & gt; 0 & lt; / CVCCodeSwitch & gt;    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -