You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Jia YU <ji...@cs.mu.OZ.AU> on 2003/10/08 03:37:55 UTC

remove xmlns:src="http://xml.apache.org/xindice/Query"

Is it possible to remove
xmlns:src="http://xml/apache.org/xindice/Query"  attribute in query
return message, because more characters cause more transfer delay.

Below is a return message, xmlns:src ... is inserted into every element.
It seems very redundant. 

<service src:col="/db/gmd/resources" src:key="application1"
type="application" xmlns:src="http://xml.apache.org/xindice/Query">
		<identifier xmlns:src="http://xml.apache.org/xindice/Query">
			<uri
xmlns:src="http://xml.apache.org/xindice/Query">http://jiayu.com/math</uri>
			<name version="1.0"
xmlns:src="http://xml.apache.org/xindice/Query">math</name>
		</identifier>
		<functionality xmlns:src="http://xml.apache.org/xindice/Query">math
program</functionality>
		<usage xmlns:src="http://xml.apache.org/xindice/Query">
			<access
xmlns:src="http://xml.apache.org/xindice/Query">webservices</access>
		</usage>
	</service>


Thanks,

Jia





Re: remove xmlns:src="http://xml.apache.org/xindice/Query"

Posted by Kevin O'Neill <ke...@apache.org>.
On Wed, 2003-10-08 at 11:37, Jia YU wrote:
> Is it possible to remove
> xmlns:src="http://xml/apache.org/xindice/Query"  attribute in query
> return message, because more characters cause more transfer delay.
> 
> Below is a return message, xmlns:src ... is inserted into every element.
> It seems very redundant. 
> 
> <service src:col="/db/gmd/resources" src:key="application1"
> type="application" xmlns:src="http://xml.apache.org/xindice/Query">
> 		<identifier xmlns:src="http://xml.apache.org/xindice/Query">
> 			<uri
> xmlns:src="http://xml.apache.org/xindice/Query">http://jiayu.com/math</uri>
> 			<name version="1.0"
> xmlns:src="http://xml.apache.org/xindice/Query">math</name>
> 		</identifier>
> 		<functionality xmlns:src="http://xml.apache.org/xindice/Query">math
> program</functionality>
> 		<usage xmlns:src="http://xml.apache.org/xindice/Query">
> 			<access
> xmlns:src="http://xml.apache.org/xindice/Query">webservices</access>
> 		</usage>
> 	</service>

The insert into every node is a bug. At the moment it's not possible to
turn off the src attribution on elements.

> Thanks,
> 
> Jia
> 
-- 
If you don't test then your code is only a collection of bugs which 
apparently behave like a working program. 

Website: http://blogs.codehaus.org/people/kevin/
Pub Key: http://blogs.codehaus.org/people/kevin/public.asc