xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniele Gagliardi" <daniele.gaglia...@engiweb.com>
Subject Re: Schema processing recursion question
Date Fri, 06 Aug 2004 12:25:04 GMT
Mancano solo due ISO con i sorgenti dei pacchetti, ma non ti servono
all'installazione. Vai alla mia cartella downloads, autenticandoti come
guest/guest. Il mio IP รจ 172.20.3.24
Io sto andando da un cliente, ma lascio il PC acceso.
Ciao!
Daniele



----- Original Message ----- 
From: "Maneesh Sahu" <maneesh@westbridgetech.com>
To: <xerces-j-user@xml.apache.org>
Sent: Monday, August 02, 2004 11:40 PM
Subject: RE: Schema processing recursion question


Is there any way besides implementing a ContentHandler? Something more
native to the parser engine?

--ms

-----Original Message-----
From: Lingzhi Zhang [mailto:lzzhang@gmail.com]
Sent: Monday, August 02, 2004 2:30 PM
To: xerces-j-user@xml.apache.org
Subject: Re: Schema processing recursion question

What do you mean the "best" way? There are several ways that you could
program it.

----- Original Message -----
From: Benjamin Kolin <ben@westbridgetech.com>
Date: Mon, 2 Aug 2004 13:39:00 -0700
Subject: Schema processing recursion question
To: xerces-j-user@xml.apache.org


Given a schema was a recursive element, like this:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"

targetNamespace="http://localhost:8080/mytest"
xmlns:tns="http://localhost:8080/mytest">
 <xs:complexType name="symbolType">
  <xs:sequence>
   <xs:element name="name" type="xs:string" />
   <xs:element name="symbol" type="tns:symbolType" minOccurs="0"

maxOccurs="1"/>
  </xs:sequence>
 </xs:complexType>
<xs:element name="getQuote">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="symbol" type="tns:symbolType"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>


What would be the best way to programmatically control the level of
recursion?  I need to be able to specify "this element is recursive,
but only up to 10 levels deep, and anything deeper should be
considered an error."  Thank you.

-Ben Kolin

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




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



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


Mime
View raw message