logo       

Re: XML Schema validation problem: msg#00019

Subject: Re: XML Schema validation problem
I think this problem is related to this recent message:

http://marc.theaimsgroup.com/?l=xerces-j-dev&m=108283663510778&w=2

on which no one commented.

Jeff

----- Original Message ----- 
From: "Michail Papadopoulos" <el97658@xxxxxxxxxxxx>
To: <xerces-j-user@xxxxxxxxxxxxxx>
Sent: Tuesday, May 04, 2004 2:22 PM
Subject: XML Schema validation problem


> I'm trying to validate an xml file against a schema that references W3C
> reserved attributes, like xml:base or xml:lang. I'm using the
DOMParser.parse
> () method to parse the file. The problem is that Xerces seems to be
unaware
> of these reserved attributes and tries to resolve the references to them,
and
> so I get the following error message :
>
> [ERROR]: src-resolve: Cannot resolve the name 'xml:base' to a(n)
'attribute
> declaration' component. line: 74, col: 36
>
> Despite this error, calling the DOMParser.getDocument() method after the
> parse returns a Document object. This is confusing. If there were errors
in
> the parse then why should this method return anything else than null? Even
> when the xml file contains elements that aren't declared in the schema,
> Xerces doesn't report them and the DOMParser.getDocument() still returns a
> Document object, as if everything was OK. Apparently Xerces stops
validating
> the document after encountering the initial xml:base error.
>
>
> The schema I'm using is the IMS Content Packaging Specification schema
which
> can be found at
>
http://www.imsglobal.org/content/packaging/cpv1p1p3/XMLschemas/imscp_v1p1.xsd
>
> The xml:base reference in the schema is :
>
> <xsd:attributeGroup name = "attr.base">
> <xsd:attribute ref = "xml:base"/>
> </xsd:attributeGroup>
>
> at line 73.
>
> I would really appreciate some help.
>
> P.S. I'm using Xerces 2.6.0
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xxxxxxxxxxxxxx
> For additional commands, e-mail: xerces-j-user-help@xxxxxxxxxxxxxx
>
>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe