Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Help requested: XML / XSD confusion - "prefix must resolve to a namespace" exception...

From: "Thea" <monika.morawiecka@-----.--->
To: NULL
Date: 9/6/2006 2:07:00 AM


Richard Tobin napisal(a):
> In article <edjkm4$1i9s$1@p...>,
> Richard Tobin <richard@c...> wrote:
>
> >>java.lang.NullPointerException: XPath query: *[@name='pd:positiveInt']
> >>failed.
>
> I take it from your other message that you are querying the schema
> document itself.  In the schema you have
>
>         <xsd:simpleType name="positiveInt">
>
> So you need to change your XPath to
>
>    *[@name='positiveInt']
>
> because you don't have "pd:" on it any more.
>
> -- Richard

Thanks, that solved this particular problem.

Now I'm back to 'prefix must resolve to a namespace' stuff, but...
In heap of messages issued by third party library I noticed debugging
statement like:

xmnls: null = http://www.w3.org/2001/XMLSchema

and in schema it says
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" (...)>

I know that thing uses 'lookupPrefix' method from org.w3c.dom.Node
class.
Shouldn't it return 'xsd' prefix?



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent