From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,d4ae576545d491bc,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.189.209 with SMTP id gk17mr74487wic.7.1366079709768; Mon, 15 Apr 2013 19:35:09 -0700 (PDT) Path: hg5ni6162wib.1!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.teledata-fn.de!weretis.net!feeder4.news.weretis.net!nuzba.szn.dk!news.jacob-sparre.dk!hugin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: J Kimball Newsgroups: comp.lang.ada Subject: XML/Ada schema validation and XML namespaces Date: Mon, 08 Apr 2013 14:58:55 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: NNTP-Posting-Host: wsip-70-184-216-59.om.om.cox.net Mime-Version: 1.0 X-Trace: hugin.sparre-andersen.dk 1365451137 16043 70.184.216.59 (8 Apr 2013 19:58:57 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 8 Apr 2013 19:58:57 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: 2013-04-08T14:58:55-05:00 List-Id: Hello I'm having the derndest time figuring out how to validate XML using namespaces against a schema with XML/Ada. I seem to recall that doing away with namespaces makes it work. After all the debug junk I don't care about scrolls past, I see: Validation_Error: Attribute "xmlns:agent" invalid for type {http://singo1.com/schemas/agent}agent-message Exception name: SCHEMA.VALIDATORS.XML_VALIDATION_ERROR it seems like an issue with XML/Ada. Can you tell me if I'm missing a feature to enable, something about XML that I'm missing or just wrong code or an example that is using namespaces that works? Some XML (agent.xml): Zerg A schema (agent.xsd): For those who are so inclined, I generated the XML schema from a RelaxNG schema (agent.rng) with trang: A response from a client. A simple message. % trang agent.rng agent.xsd agent.xml validates successfully against both schemas using jing and xmllint: % jing agent.rng agent.xml % xmllint --relaxng agent.rng agent.xml % xmllint --schema agent.xsd agent.xml