![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Help requested: XML / XSD confusion - "prefix must resolve to a namespace" exception... [Thread Next] Re: Help requested: XML / XSD confusion - "prefix must resolve to a namespace" exception...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? | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
