I have a legacy system to support.  It is namespace unaware.  I’m puzzled as to how to specify my schema to get plain-jane xml like this:

 

<LobbyList>

  <Lobby Title="ABC" State="open" ID="lobby-1">….

 

I define use the following schema

 

 

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

<xschema xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="EN"

          xmlns="" targetNamespace="http://mm.com/omsg/lobbylist/ctx"

          elementFormDefault="unqualified" attributeFormDefault="unqualified">

                <xs:element name="LobbyList" minOccurs="1" maxOccurs="1">

                          <xs:complexType>

                                          <xsequence>

                                                                <xs:element name="Lobby" minOccurs="1" maxOccurs="unbounded">  …..

 

 

But it gives me the following, which is incomprehensible to my client.

 

<LobbyList xmlns="http://mm.com/omsg/lobbylist/ctx">

  <p:Lobby Title="ABC" State="open" ID="lobby-1" xmlns:p="">

 

 

I know that I can do an XSLT transform, but this is a high volume exercise.  I’d like to do it directly, even if it’s not the official XML (Nobody in this system needs full namespace aware XML).  If I can’t just configure it, then what class do I have to override/subclass/replace to write it the way I want?

 

Thanks

 

Neil

Reply via email to