users@jaxb.java.net

problem with external binding file with an @extensionBindingPrefixes

From: Mike Skells <mike.skells_at_validsoft.com>
Date: Wed, 11 Feb 2009 12:53:13 -0800 (PST)

Hi,
I am having a problem with using a binding file with
extensionBindingPrefixes

when I try to use the file below I get an error

[ERROR] cvc-elt.1: Cannot find the declaration of element 'vsi:problem'.
  line 5 of
file:/C:/codebase/valid-head5/vsbuild/projects/zz-XML-generator/xml/binding/test.xjb

Failed to parse a schema.

I have tried using JAXB 2.1.10.
The document validated OK with eclipse and XMLSpy


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bindings xmlns="http://java.sun.com/xml/ns/jaxb"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vsi="myUri"
extensionBindingPrefixes="vsi" version="2.1">
        <bindings scd="x-schema::tns"
xmlns:tns="http://uri.validsoft.com/products/valid/common">
                <bindings scd="~tns:general-data">
                        <vsi:problem>something</vsi:problem>
                </bindings>
        </bindings>
</bindings>

-- 
View this message in context: http://www.nabble.com/problem-with-external-binding-file-with-an-%40extensionBindingPrefixes-tp21963489p21963489.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.