Create different element in XSD

quietteder

New Member
I have a XSD modified to add new item without having to create a new XSD. Currently I have a single element in this case is "tire".I created an element of type "tire".\[code\]<xs:element name="tire" type="x:tire" />\[/code\]but I get an error when validating. Error:\[code\]Not valid.Error - Line 4, 43: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 43; src-resolve.4.2: Error resolving component 'x:tire'. It was detected that 'x:tire' is in namespace 'http://www.w3.org/2001/XMLSchema', but components from this namespace are not referenceable from schema document 'null'. If this is the incorrect namespace, perhaps the prefix of 'x:tire' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'null'.Error - Line 4, 43: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 43; src-resolve: Cannot resolve the name 'x:tire' to a(n) 'type definition' component.\[/code\]XML\[code\]<?xml version="1.0" encoding="UTF-8"?><tire trademark="runway" id="369954" product-type="tire"> <url>http://www.tire.es/product/369954.html</url> <price>28.95</price> <specs> <spec name="b_homologation">0</spec> <spec name="b_xl">0</spec> <spec name="b_runflat">0</spec> <spec name="s_drawing_type">sim
 
Top