ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Problem with the name spaces in the output

Post new topic  Reply to topic
 Problem with the name spaces in the output « View previous topic :: View next topic » 
Author Message
siva.kasetty
PostPosted: Sun Jun 01, 2008 11:46 pm    Post subject: Problem with the name spaces in the output Reply with quote

Apprentice

Joined: 17 Mar 2008
Posts: 45

Hi,

i am transforming the xml message to ventyx to Maximo.
but when i am getting the output it comes with the namesapces, also it is not valid xml.

This is my output.

<?xml version="1.0"?>
<Q1:N_LOCATIONIface xmlns:Q1="http://www.mro.com/mx/integration" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<Q1:Content>
<Q1:N_MXCISLOCATION>
<Q1:LOCATIONS>
<Q1:LOCATION>CIS_SIT_ID</Q1:LOCATION>
<Q1:TYPE>OPERATING</Q1:TYPE>
<Q1:DISABLED>0</Q1:DISABLED>
<Q1:SITEID>INDIANA</Q1:SITEID>
<Q1:ORGID>NISOURCE</Q1:ORGID>
<Q1:STATUS>OPERATING</Q1:STATUS>
<Q1:N_ALIAS></Q1:N_ALIAS>
<Q1:N_CISSITEID>345130009</Q1:N_CISSITEID>
<Q1:N_LOCALOPNUM>9A</Q1:N_LOCALOPNUM>
<Q1:N_LOCZIPCODE></Q1:N_LOCZIPCODE>
<Q1:N_SITESTAT>S</Q1:N_SITESTAT>
<Q1:N_SITETYP></Q1:N_SITETYP>
<Q1:N_SITEUSE>K3</Q1:N_SITEUSE>
<Q1:N_TAXDISTRICT>RGC</Q1:N_TAXDISTRICT>
<Q1:LOCHIERARCHY>
<Q1:ORGID>NISOURCE</Q1:ORGID>
</Q1:LOCHIERARCHY>
</Q1:LOCATIONS>
</Q1:N_MXCISLOCATION>
</Q1:Content>
</Q1:N_LOCATIONIface>


can u please tell me how to remove the namespaces.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Sun Jun 01, 2008 11:59 pm    Post subject: Re: Problem with the name spaces in the output Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

siva.kasetty wrote:

i am transforming the xml message to ventyx to Maximo.
but when i am getting the output it comes with the namesapces, also it is not valid xml.


We can detach or make the namespace null,

Let us know how the namespace is getting generated, are you using nay WSDL in between, or anything else..

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
siva.kasetty
PostPosted: Mon Jun 02, 2008 12:40 am    Post subject: Reply with quote

Apprentice

Joined: 17 Mar 2008
Posts: 45

i am getting a maximo xml, when i am creating the xsd from it, it creating the namespaces.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Jun 02, 2008 4:28 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
it is not valid xml
What is 'not valid' about it? What would you like the XML to look like?
Quote:
i am getting a maximo xml, when i am creating the xsd from it, it creating the namespaces.
Sounds dangerous. How do you know that the resulting XSD is 100% correct?
Back to top
View user's profile Send private message
siva.kasetty
PostPosted: Mon Jun 02, 2008 4:58 am    Post subject: Reply with quote

Apprentice

Joined: 17 Mar 2008
Posts: 45

in my output i dont Q1: to be present, i want to remove it.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Jun 02, 2008 6:03 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

See this recent post. You are trying to remove the namespace on each element, but the task is the same.
http://mqseries.net/phpBB/viewtopic.php?t=43501&sid=ce0ae9fff9d4764ff374b7418e54347a
Quote:
The message tree is not an XML document. It is more like a DOM tree. Each node has its own namespace.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Problem with the name spaces in the output
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.