PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.db.ms-sqlserver > Namespace problem in Bulkload
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Namespace problem in Bulkload

Réponse
 
LinkBack Outils de la discussion
Vieux 30/03/2008, 10h45   #1
worlman385@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Namespace problem in Bulkload

I have namspace problem in Bulkload where if in XML data file, I have
a namespace like xmlns='urn:TMSWebServices', then in my schema I must
put xmlns:tm="urn:TMSWebServices" right?

but if I put that, then I will not able to use Bulkload as it say
tm:callSign has invalide charater.

How can I deal with namespace like xmlns='urn:TMSWebServices' in data
file?

XML schema:
Code Snippet
=============================
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:sql="urn:schemas-microsoft-com:mapping-schema"
xmlns:tm="urn:TMSWebServices">

<xsd:element name="tm:station" sql:relation="station">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="tm:callSign" type="xsd:string"/>
<xsd:element name="tm:name" type="xsd:string"/>
<xsd:element name="tm:affiliate" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="tm:id" type="xsd:integer"/>
</xsd:complexType>
</xsd:element>

</xsd:schema>

XML data:
=============================

<xtvd xmlns='urn:TMSWebServices' >

<stations>
<station id='46719'>
<callSign>52MXI</callSign>
<name>Canal 52MX International</name>
<affiliate>Satellite</affiliate>
</station>
<station id='19327'>
<callSign>70S</callSign>
<name>Music Choice: 70&apos;s</name>
<affiliate>Music</affiliate>
</station>
<station id='19328'>
<callSign>80S</callSign>
<name>Music Choice: 80&apos;s</name>
<affiliate>Music</affiliate>
</station>
</stations>

</xtvd>

SQL Table:
=============================

CREATE TABLE ProgramListings.dbo.station)

(
id INT,
callSign VARCHAR(20),
name VARCHAR(100),
affiliate VARCHAR(100),
PRIMARY KEY(id)

)
  Réponse avec citation
Vieux 30/03/2008, 18h22   #2
Mike C#
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Namespace problem in Bulkload

Does this change work?

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:sql="urn:schemas-microsoft-com:mapping-schema"
xmlns:tm="urn:TMSWebServices"
xmlns="urn:TMSWebServices">

<worlman385@yahoo.com> wrote in message
news:q7ouu3p1h2sc3etsgvrneu6obkdli6llp5@4ax.com...
>I have namspace problem in Bulkload where if in XML data file, I have
> a namespace like xmlns='urn:TMSWebServices', then in my schema I must
> put xmlns:tm="urn:TMSWebServices" right?
>
> but if I put that, then I will not able to use Bulkload as it say
> tm:callSign has invalide charater.
>
> How can I deal with namespace like xmlns='urn:TMSWebServices' in data
> file?
>
> XML schema:
> Code Snippet
> =============================
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:sql="urn:schemas-microsoft-com:mapping-schema"
> xmlns:tm="urn:TMSWebServices">
>
> <xsd:element name="tm:station" sql:relation="station">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="tm:callSign" type="xsd:string"/>
> <xsd:element name="tm:name" type="xsd:string"/>
> <xsd:element name="tm:affiliate" type="xsd:string"/>
> </xsd:sequence>
> <xsd:attribute name="tm:id" type="xsd:integer"/>
> </xsd:complexType>
> </xsd:element>
>
> </xsd:schema>
>
> XML data:
> =============================
>
> <xtvd xmlns='urn:TMSWebServices' >
>
> <stations>
> <station id='46719'>
> <callSign>52MXI</callSign>
> <name>Canal 52MX International</name>
> <affiliate>Satellite</affiliate>
> </station>
> <station id='19327'>
> <callSign>70S</callSign>
> <name>Music Choice: 70&apos;s</name>
> <affiliate>Music</affiliate>
> </station>
> <station id='19328'>
> <callSign>80S</callSign>
> <name>Music Choice: 80&apos;s</name>
> <affiliate>Music</affiliate>
> </station>
> </stations>
>
> </xtvd>
>
> SQL Table:
> =============================
>
> CREATE TABLE ProgramListings.dbo.station)
>
> (
> id INT,
> callSign VARCHAR(20),
> name VARCHAR(100),
> affiliate VARCHAR(100),
> PRIMARY KEY(id)
>
> )



  Réponse avec citation
Vieux 31/03/2008, 00h36   #3
worlman385@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Namespace problem in Bulkload

use

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:sql="urn:schemas-microsoft-com:mapping-schema"

xmlns:tm="urn:TMSWebServices"

targetNamespace="urn:TMSWebServices"

elementFormDefault="qualified">



On Sun, 30 Mar 2008 13:22:46 -0400, "Mike C#" <xyz@xyz.com> wrote:

>Does this change work?
>
><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:sql="urn:schemas-microsoft-com:mapping-schema"
> xmlns:tm="urn:TMSWebServices"
> xmlns="urn:TMSWebServices">
>
><worlman385@yahoo.com> wrote in message
>news:q7ouu3p1h2sc3etsgvrneu6obkdli6llp5@4ax.com.. .
>>I have namspace problem in Bulkload where if in XML data file, I have
>> a namespace like xmlns='urn:TMSWebServices', then in my schema I must
>> put xmlns:tm="urn:TMSWebServices" right?
>>
>> but if I put that, then I will not able to use Bulkload as it say
>> tm:callSign has invalide charater.
>>
>> How can I deal with namespace like xmlns='urn:TMSWebServices' in data
>> file?
>>
>> XML schema:
>> Code Snippet
>> =============================
>> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:sql="urn:schemas-microsoft-com:mapping-schema"
>> xmlns:tm="urn:TMSWebServices">
>>
>> <xsd:element name="tm:station" sql:relation="station">
>> <xsd:complexType>
>> <xsd:sequence>
>> <xsd:element name="tm:callSign" type="xsd:string"/>
>> <xsd:element name="tm:name" type="xsd:string"/>
>> <xsd:element name="tm:affiliate" type="xsd:string"/>
>> </xsd:sequence>
>> <xsd:attribute name="tm:id" type="xsd:integer"/>
>> </xsd:complexType>
>> </xsd:element>
>>
>> </xsd:schema>
>>
>> XML data:
>> =============================
>>
>> <xtvd xmlns='urn:TMSWebServices' >
>>
>> <stations>
>> <station id='46719'>
>> <callSign>52MXI</callSign>
>> <name>Canal 52MX International</name>
>> <affiliate>Satellite</affiliate>
>> </station>
>> <station id='19327'>
>> <callSign>70S</callSign>
>> <name>Music Choice: 70&apos;s</name>
>> <affiliate>Music</affiliate>
>> </station>
>> <station id='19328'>
>> <callSign>80S</callSign>
>> <name>Music Choice: 80&apos;s</name>
>> <affiliate>Music</affiliate>
>> </station>
>> </stations>
>>
>> </xtvd>
>>
>> SQL Table:
>> =============================
>>
>> CREATE TABLE ProgramListings.dbo.station)
>>
>> (
>> id INT,
>> callSign VARCHAR(20),
>> name VARCHAR(100),
>> affiliate VARCHAR(100),
>> PRIMARY KEY(id)
>>
>> )

>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h57.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14231 seconds with 11 queries