Skip to Content
author's profile photo
Former Member

XML Schemas for syndication

Hello everyone:

I'm using XML Schemas for syndicating data, however, I need to add a namespace for XI to catch the xml and distribute the data.

The xsd file is:

<?xml version="1.0" encoding="UTF-8"?>

http://www.w3.org/2001/XMLSchema" xmlns:ns=" http://sap.com/xi/XI/MyDemos/DemoADD">

<xsd:element name="MsgTypeSynFADIC0">

<xsd:complexType>

<xsd:sequence>

<!-- my data -->

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:schema>

and I get something like this:

<?xml version="1.0" ?>

http://sap.com/xi/XI/MyDemos/DemoADD">

<!-- my data -->

</MsgTypeSynFADIC0>

however, I need something like this:

http://sap.com/xi/XI/MyDemos/DemoADD">

<!-- my data -->

</ns:MsgTypeSynFADIC0>

So I need the nd: prefix before the rootElement. I've tried XML/XSD editors but when I feed Syndicator with those the rootElement desapears and I can't create a Syndication File.

What can I add to the schema file so I get the ns: prefix?

Thanks

Regards

Alejandro

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Oct 04, 2005 at 09:01 PM

    Hi Alejandro,

    Do you think the "Namespace" option under the "Syndication Properties" tab in Syndicator may help you?

    Regards,

    Rajani Kumar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello:

      No it won't help. If I write "Alejandro" as namespace, like you suggested, I get:

      <MsgTypeSynFADIC0 generated="" xmlns="Alejandro">

      <!-- Data -->

      </MsgTypeSynFADIC0>

      I need to change the reference to namespace in the root element (ie. <alejandro:MsgTypeSynFADIC0 generated="" xmlns="Alejandro">)

      Thanks for the reply tough

      Alejandro