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 Naren Chawla <na...@ipedo.com> on 2002/01/28 02:53:02 UTC

Schema grammar

Folks:

I would like to achieve this -

1. Generate a schema grammar from XML Schema file
2. Change the schema grammar programmatically (for e.g., add a new
element)
3. Generate a modified schema file on the filesystem from the modified
schema grammar

Looking at xerces java 2 code, seems like I could achieve 1 & 2. Even
"2" might require some additional coding on my part. However, unsure
whether I could achieve "3" at all.  I would appreciate a quick reply on
this.

Thanks,

Naren


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


Re: Schema grammar

Posted by Elena Litani <el...@ca.ibm.com>.

Naren Chawla wrote:
> 1. Generate a schema grammar from XML Schema file

Yes, you can do it with Xerces using DOM L3 Load APIs.

> 2. Change the schema grammar programmatically (for e.g., add a new
> element)
> 3. Generate a modified schema file on the filesystem from the modified
> schema grammar
 
We don't provide any APIS to allow to modify XML Schema in memory. If
you want - you can always hack into Xerces internal code, but ...

> However, unsure
> whether I could achieve "3" at all.  I would appreciate a quick reply on
> this.

We don't provide any APIS to serialize XML Schemas.

As I've mentioned before we don't have any plans to support XML Schema
editing in Xerces.

-- 
Elena Litani / IBM Toronto

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


Re: Schema grammar

Posted by Elena Litani <el...@ca.ibm.com>.

Naren Chawla wrote:
> 1. Generate a schema grammar from XML Schema file

Yes, you can do it with Xerces using DOM L3 Load APIs.

> 2. Change the schema grammar programmatically (for e.g., add a new
> element)
> 3. Generate a modified schema file on the filesystem from the modified
> schema grammar
 
We don't provide any APIS to allow to modify XML Schema in memory. If
you want - you can always hack into Xerces internal code, but ...

> However, unsure
> whether I could achieve "3" at all.  I would appreciate a quick reply on
> this.

We don't provide any APIS to serialize XML Schemas.

As I've mentioned before we don't have any plans to support XML Schema
editing in Xerces.

-- 
Elena Litani / IBM Toronto

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