Thread View: borland.public.delphi.xml
1 messages
1 total messages
Started by gmbouwer
Tue, 13 May 2008 11:04
DeclareNamespace / SchemaLocation
Author: gmbouwer
Date: Tue, 13 May 2008 11:04
Date: Tue, 13 May 2008 11:04
34 lines
2384 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads