You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Laxman, Vidya" <VL...@Tilion.com> on 2000/11/20 16:01:08 UTC

Creating XML by passing DTD to a DOM Parser

Hi,

	I would like to create an XML file using the DOMParser.  I would
like to pass in a DTD, does the DOMParser know how to create an xml file by
reading the DTD? Are there any API's?

Thanks,
-Vidya


-----Original Message-----
From: Martin Gudgin [mailto:marting@develop.com]
Sent: Monday, November 20, 2000 7:27 AM
To: xerces-j-dev@xml.apache.org
Subject: Re: deriving by restriction of complex types with simple
content


You cannot derive a simpleType ( or a complexType with simpleContent ) from
a complexType. If you want simpleContent you have to start with a simple
type;

<complexType name='myType' >
  <simpleContent>
    <extension base='boolean' >
      <attribute name='...' type='...' />
    </extension>
  </simpleContent>
</complexType>

Hope this helps,

Martin Gudgin
DevelopMentor



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org

Re: Creating XML by passing DTD to a DOM Parser

Posted by Eric Ye <er...@locus.apache.org>.
The XMLGenerator technology downloadable from http://www.alphaworks.ibm.com
might be relevant.
_____


Eric Ye * IBM, JTC - Silicon Valley * ericye@locus.apache.org

----- Original Message -----
From: "Laxman, Vidya" <VL...@Tilion.com>
To: <xe...@xml.apache.org>
Sent: Monday, November 20, 2000 7:01 AM
Subject: Creating XML by passing DTD to a DOM Parser


> Hi,
>
> I would like to create an XML file using the DOMParser.  I would
> like to pass in a DTD, does the DOMParser know how to create an xml file
by
> reading the DTD? Are there any API's?
>
> Thanks,
> -Vidya
>
>
> -----Original Message-----
> From: Martin Gudgin [mailto:marting@develop.com]
> Sent: Monday, November 20, 2000 7:27 AM
> To: xerces-j-dev@xml.apache.org
> Subject: Re: deriving by restriction of complex types with simple
> content
>
>
> You cannot derive a simpleType ( or a complexType with simpleContent )
from
> a complexType. If you want simpleContent you have to start with a simple
> type;
>
> <complexType name='myType' >
>   <simpleContent>
>     <extension base='boolean' >
>       <attribute name='...' type='...' />
>     </extension>
>   </simpleContent>
> </complexType>
>
> Hope this helps,
>
> Martin Gudgin
> DevelopMentor
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>