Author |
Message
|
siva.kasetty |
Posted: Sun Jun 01, 2008 11:46 pm Post subject: Problem with the name spaces in the output |
|
|
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 |
|
 |
Gaya3 |
Posted: Sun Jun 01, 2008 11:59 pm Post subject: Re: Problem with the name spaces in the output |
|
|
 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 |
|
 |
siva.kasetty |
Posted: Mon Jun 02, 2008 12:40 am Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Mon Jun 02, 2008 4:28 am Post subject: |
|
|
 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 |
|
 |
siva.kasetty |
Posted: Mon Jun 02, 2008 4:58 am Post subject: |
|
|
Apprentice
Joined: 17 Mar 2008 Posts: 45
|
in my output i dont Q1: to be present, i want to remove it. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Jun 02, 2008 6:03 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
|