🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.xml
Article #170

DeclareNamespace / SchemaLocation

#170
From: gmbouwer
Date: Tue, 13 May 2008 11:04
34 lines
2384 bytes
Hi,

Sorry if this is a repeated question, but I cannot find a quick and
easy answer anywhere.
I'm having some trouble with the namespace declarations on XML I
generate.
I used XML Databinding Wiz (Delphi 6) to generate my classes.

XML should be:
xmlns="http://1.org.za/draft" xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance" xsi:schemaLocation="http://1.org.za/draft file:
1.xsd " schemaVersion="1.0" resendIndicator="false"
xsi:type="DispensingProviderClaim">

Now, I tried:

DeclareNamespace( '','http://1.org.za/draft' );
DeclareNamespace( 'xsi','http://www.w3.org/2001/XMLSchema-instance' );
DeclareNamespace( 'schemaLocation','http://1.org.za/draft file:
1.xsd' );
schemaVersion := '1.0';
resendIndicator := false;
DeclareNamespace( 'type','DispensingProviderClaim' );

But this gives:
xmlns="http://1.org.za/draft" xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance" xmlns:schemaLocation="http://1.org.za/draft file:
1.xsd " schemaVersion="1.0" resendIndicator="false"
xmlns:type="DispensingProviderClaim">

Obviously the difference lies in the schemalocation and type.
Can somebody maybe tell me what I'm doing wrong?

Thanks
Technical Details
Message-ID: <935db719-202a-4347-81e5-49b7530bb639@c65g2000hsa.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!c65g2000hsa.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f5d9b,a8f61a593b4ac262,start
X-Google-Attributes: gidf5d9b,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!c65g2000hsa.googlegroups.com!not-for-mail
From: gmbouwer@gmail.com
Newsgroups: borland.public.delphi.xml
Subject: DeclareNamespace / SchemaLocation
Date: Tue, 13 May 2008 04:04:22 -0700 (PDT)
Organization: http://groups.google.com
Lines: 34
Message-ID: <935db719-202a-4347-81e5-49b7530bb639@c65g2000hsa.googlegroups.com>
NNTP-Posting-Host: 196.35.158.179
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1210676663 27017 127.0.0.1 (13 May 2008 11:04:23 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 13 May 2008 11:04:23 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: c65g2000hsa.googlegroups.com; posting-host=196.35.158.179; 
 posting-account=f0V7MgkAAABqAlo_kl1FSwJwGYwLIo-6
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) 
 Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 nc6-rba (NetCache NetApp/6.0.3)