Hello,
unfortunately I don't have any experiences about this topic, I am just a beginner in the XML world, but maybe that is a help for You:
I think, You can do what You want with DOM. Maybe You may need to build some extra xerces dom(3)-related jar files by ant jars-dom3. You can read about it in the help.
Probably as You wrote, schema validation implementation needs the same things as You do, so perhaps look at dom(3)-related packages above!
I know that is just a general comment, does anybody help with some concrete example out there on the list? :)
Kind regards,
Csaba Szucs
Jakub Kahovec <[EMAIL PROTECTED]>
12/08/2004 12:21 PM
|
To: [EMAIL PROTECTED] cc: (bcc: Csaba Szucs/ve/eu/au/cag) Subject: Re: How to get allow childs |
Hi,
i've already had a look at the xerces 2.6.2 sources as well as at jdk1.5
api but i've not found any of methods i.e geAllowedChilds or
getAllowedNextSiblings
which are mentioned in the interface org.w3c.dom.validation.
One way that I thought about was to parse and analyse xsd file(s) but
that's quite laborious and I assume there has to be some easier way how
to do it.
For instance when the xerces validate the xml file against a xsd
schema(s) it must know i.e which siblings or childs can follow a node
and which can't.
Jakub
[EMAIL PROTECTED] wrote:
>
> Hello Jakub,
>
> I think, that jdk1.5 does contain the implementation of that package
> inside JAXP. Maybe You will find some relevant classes in the xerces
> package version 2.6.2.
>
> Kind regards,
>
> Csaba Szucs
>
>
>
>
>
> *Jakub Kahovec <[EMAIL PROTECTED]>*
>
> 12/08/2004 11:33 AM
> Please respond to xerces-j-user
>
>
> To: [EMAIL PROTECTED]
> cc: (bcc: Csaba Szucs/ve/eu/au/cag)
> Subject: How to get allow childs
>
>
>
>
> Hi,
> does exist at the moment some easy way how to find out which child nodes
> or next siblings
> are allowed (from xsd definition) to add to/remove from node ?
> I've realized that these information are provided by
> org.w3c.doim.validation interface, but I've not
> found any open-source implementation of it.
>
> Thanks for any advise.
>
> Jakub
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]