Re: [Simple-support] elementFormDefault
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2009-01-28 18:49:21
|
Just use @Namespace without anything and all children of that object will be unqualified. You can put it on @Elements or @Attributes as well as @Root. And even on @Version. No need so keep specifying.
--- On Wed, 1/28/09, Wetmiller, Eric <ewe...@ha...> wrote:
> From: Wetmiller, Eric <ewe...@ha...>
> Subject: [Simple-support] elementFormDefault
> To: sim...@li...
> Date: Wednesday, January 28, 2009, 10:46 AM
> I am using SimpleXML version 2.0.2 and was wondering if
> there is a way
> to set elementFormDefault="unqualified" on my
> schema. It appears that I
> have to qualify all of the sub-elements in my schema. So,
> in other
> words, when I set my root element namespace, ie
> @Namespace("pfx",
> "namespace"), I have to use prefix for all
> sub-elements also. Any help
> would be appreciated.
>
>
>
> -Eric
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword_______________________________________________
> Simple-support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simple-support
|