From: KevinBenson <km...@ms...> - 2006-03-14 16:20:18
|
A long time ago I sent long-winded e-mail about a lost namespace. Thought I would send it again since i have no answers, just less long-winded. In general I put XML below and attached (the same one) to the e-mail. See the comment section <!-- --> in the xml to see which namespace is lost (pretty much in the middle of the XML). It is stored correctly but namespace is lost on backups and getMembersAsResource from ResourceSet. (its happend on this release and previous ones). I grab most of this XML from other providers, hence a little hard for me to make a work-around on my side. I can live with the bug slightly, but doing backups and restores as you can see might be a problem :) cheers, Kevin XML (also attached the same xml as a file), to simply load this xml into eXist and run a backup. <?xml version="1.0" encoding="UTF-8"?> <AstrogridResource> <vor:Resource xmlns:vor="http://www.ivoa.net/xml/RegistryInterface/v0.1" xmlns:cea="http://www.ivoa.net/xml/CEAService/v0.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vg="http://www.ivoa.net/xml/VORegistry/v0.3" xmlns:vc="http://www.ivoa.net/xml/VOCommunity/v0.2" xmlns:cs="http://www.ivoa.net/xml/ConeSearch/v0.3" xmlns:ceab="http://www.astrogrid.org/schema/CommonExecutionArchitectureBase/v1" xmlns:ceapd="http://www.astrogrid.org/schema/AGParameterDefinition/v1" xmlns:tdb="urn:astrogrid:schema:vo-resource-types:TabularDB:v0.3" xmlns:sia="http://www.ivoa.net/xml/SIA/v0.7" xmlns:vs="http://www.ivoa.net/xml/VODataService/v0.5" xmlns="http://www.ivoa.net/xml/VOResource/v0.10" xsi:type="cs:ConeSearch"> <title xmlns:vr="http://www.ivoa.net/xml/VOResource/v0.10" xmlns:cs="http//www.ivoa.net/xml/ConeSearch/v0.3">test</title> <shortName xmlns:vr="http://www.ivoa.net/xml/VOResource/v0.10" xmlns:cs="http//www.ivoa.net/xml/ConeSearch/v0.3">test</shortName> <identifier xmlns:vr="http://www.ivoa.net/xml/VOResource/v0.10">ivo://someastro/data</identifier> <curation xmlns:vr="http://www.ivoa.net/xml/VOResource/v0.10"> <publisher ivo-id="ivo://test/registry">test</publisher> <creator> <name>Test Name</name> </creator> <contributor/> <date>2005-11-10</date> <contact> <name>Test name</name> <email>te...@te...</email> </contact> </curation> <content xmlns:vr="http://www.ivoa.net/xml/VOResource/v0.10"> <subject>Cluster of Galaxies</subject> <description>Test description</description> <source format="">testsource</source> <referenceURL>http://testreference</referenceURL> <type>Catalog</type> <contentLevel>Research</contentLevel> <relationship> <relationshipType>service-for</relationshipType> <relatedResource ivo-id="ivo://test/te">test relationship</relatedResource> </relationship> </content> <vr:interface xmlns:vr="http://www.ivoa.net/xml/VOResource/v0.10" xmlns="http://www.ivoa.net/xml/VODataService/v0.5" qtype="GET" xsi:type="vs:ParamHTTP"> <!-- The xmlns="http://www.ivoa.net/xml/VOResource/v0.10" below is lost when I do a backup.bat also it seems getMembersAsResource from ResourceSet seems to lose it when printing out the resset.getMembersAsResource().getContent().toString() Hence it takes on the namespace of VODataService from the interface element above. --> <accessURL xmlns="http://www.ivoa.net/xml/VOResource/v0.10" use="base"> http://heasarc.gsfc.nasa.gov/cgi-bin/vo/cone/coneGet.pl?table=abell& </accessURL> <resultType>text/xml</resultType> </vr:interface> <vs:coverage xmlns:vr="http://www.ivoa.net/xml/VOResource/v0.10" xmlns="http://www.ivoa.net/xml/VODataService/v0.5"> <spatial> <region xsi:type="CircleRegion"> <coordFrame>FK5</coordFrame> <center> <long>0</long> <lat>0</lat> </center> <radius>ALL SKY</radius> </region> <regionOfRegard>0.25</regionOfRegard> </spatial> <spectral> <waveband>Optical</waveband> </spectral> <temporal> <startTime/> </temporal> </vs:coverage> <cs:capability xmlns:vr="http://www.ivoa.net/xml/VOResource/v0.10"> <cs:maxSR>180</cs:maxSR> <cs:maxRecords>99999</cs:maxRecords> <cs:verbosity>false</cs:verbosity> </cs:capability> </vor:Resource> </AstrogridResource> |