Look at Transforms tag of XML Digital Signature
<element name="Transforms"
type="ds:TransformsType"/>
<complexType name="TransformsType">
<sequence>
<element ref="ds:Transform"
maxOccurs="unbounded"/>
</sequence>
</complexType>
<element name="Transform"
type="ds:TransformType"/>
<complexType name="TransformType"
mixed="true">
<choice minOccurs="0"
maxOccurs="unbounded">
<any namespace="##other"
processContents="lax"/>
<!-- (1,1) elements from (0,unbounded) namespaces
-->
<element name="XPath"
type="string"/>
</choice>
<attribute name="Algorithm"
type="anyURI" use="required"/>
</complexType>
You have got an any tag, inside this tag you can put any
well formatted xml. In this case XmlBeans only creates beans
for Transforms and Transform, and attributes Xpath and
Algorithm. And in XML file you can have somethinf like
<Transforms>
<Transform ....>
<NotInXmlBeans></NotInXmlBeans>
<MyInformation></MyInformation>
....
</Transform>
</Transforms>
I wish it can help you.
-----Mensaje original-----
De: raov [mailto:prasadvemula gmail.com]
Enviado el: miércoles, 28 de marzo de 2007 13:37
Para: user xmlbeans.apache.org
Asunto: RE: using part of xsd file only
if u don't mind can u explain with an example. i need this
one very urgent.....
Soto, Alex wrote:
>
> Yes remember to use anyType, in XMLBeans you can find
lot of examples.
> Thanks of anyType you can return a w3c Node object or
simply parse
> using XmlCursors.
>
> -----Mensaje original-----
> De: raov [mailto:prasadvemula gmail.com] Enviado el:
miércoles, 28 de
> marzo de 2007 12:23
> Para: user xmlbeans.apache.org
> Asunto: RE: using part of xsd file only
>
>
> Thanks Alex,
>
> what i am understanding is create another xsd using old
one( this
> contain whatever my require part only), if u don't mind
can u exaplain
> using example code.
>
>
>
> Soto, Alex wrote:
>>
>> I think is not possible, but you can use the next
approach. Use
>> anyType type inside tags you won't need to be
generated. Then
>> generates another xsd with content that will go
inside anyType. So
>> with Xml you can validate both, but only tags
outside anytype are
>> generated by xml beans. Don't know if you
understand me. Ask me
>> without any problem.
>>
>> -----Mensaje original-----
>> De: raov [mailto:prasadvemula gmail.com] Enviado el:
miércoles, 28 de
>> marzo de 2007 11:46
>> Para: user xmlbeans.apache.org
>> Asunto: using part of xsd file only
>>
>>
>> Hi,
>>
>> I am very new to xml beans. i have an xsd file
>>
>> <xs:schema targetNamespace="http://openuri.org/ea
sypo"
>> xmlns:po="http://openuri.org/ea
sypo"
>> xmlns s=&qu
ot;http://www.w3.
org/2001/XMLSchema"
>> elementFormDefault="qualified">
>>
>> <xs:element
name="purchase-order">
>> <xs:complexType>
>> <xs:sequence>
>> <xs:element
name="customer" type="po:customer"/>
>> <xs:element
name="line-item" type="po:line-item"
>> minOccurs="0"
maxOccurs="unbounded"/>
>> </xs:sequence>
>> </xs:complexType>
>> </xs:element>
>> <xs:complexType
name="customer">
>> <xs:sequence>
>> <xs:element name="name"
type="xs:string"/>
>> <xs:element name="address"
type="xs:string"/>
>> </xs:sequence>
>> </xs:complexType>
>> <xs:complexType
name="line-item">
>> <xs:sequence>
>> <xs:element
name="description" type="xs:string"/>
>> <xs:element
name="per-unit-ounces"
type="xs:decimal"/>
>> <xs:element name="price"
type="xs:double"/>
>> <xs:element
name="quantity" type="xs:int"/>
>> </xs:sequence>
>> </xs:complexType>
>>
>> </xs:schema>
>>
>> when i was compiling this xsd file i am getting
beans
>> customer,lineitem,purchaseorderdocument,
purchaseorder. but my
>> requirement is, I want to compile part of xsd file
means need to
>> generate only "customer" related beans no
need to generate "lineItem"
>> beans. Is there any way to compile part of xsd
file. if it's there or
>> not let me know.
>> kindly help ASAP.
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/using-part-of-xsd-fil
e-only-tf3478859.html#a970
>> 8
>> 879 Sent from the Xml Beans - User mailing list
archive at Nabble.com.
>>
>>
>>
------------------------------------------------------------
---------
>> To unsubscribe, e-mail: user-unsubscribe xmlbeans.apache.org
>> For additional commands, e-mail: user-help xmlbeans.apache.org
>>
>>
>>
>> La información contenida en el presente e-mail es
confidencial y está
>> reservada para el uso exclusivo de su destinatario.
Se prohíbe
>> estrictamente la distribución, copia o utilización
de esta
>> información sin el previo permiso de su
destinatario. Si usted no
>> fuera el destinatario, por favor notifíquelo
inmediatamente al
>> remitente y elimine el presente mensaje de su
sistema informático.
>>
>> Information contained in this e-mail is
confidential and is intended
>> for the use of the addressee only. Any
dissemination, distribution,
>> copying or use of this communication without prior
permission of the
>> addressee is strictly prohibited. If you are not
the intended
>> addressee, please notify the sender immediately by
reply and then
>> delete this message from your computer system.
>>
>>
------------------------------------------------------------
---------
>> To unsubscribe, e-mail: user-unsubscribe xmlbeans.apache.org
>> For additional commands, e-mail: user-help xmlbeans.apache.org
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/using-part-of-xsd-fi
le-only-tf3478859.html#a9710
> 877 Sent from the Xml Beans - User mailing list archive
at Nabble.com.
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: user-unsubscribe xmlbeans.apache.org
> For additional commands, e-mail: user-help xmlbeans.apache.org
>
>
>
> La información contenida en el presente e-mail es
confidencial y está
> reservada para el uso exclusivo de su destinatario. Se
prohíbe
> estrictamente la distribución, copia o utilización de
esta información
> sin el previo permiso de su destinatario. Si usted no
fuera el
> destinatario, por favor notifíquelo inmediatamente al
remitente y
> elimine el presente mensaje de su sistema informático.
>
> Information contained in this e-mail is confidential
and is intended
> for the use of the addressee only. Any dissemination,
distribution,
> copying or use of this communication without prior
permission of the
> addressee is strictly prohibited. If you are not the
intended
> addressee, please notify the sender immediately by
reply and then
> delete this message from your computer system.
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: user-unsubscribe xmlbeans.apache.org
> For additional commands, e-mail: user-help xmlbeans.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/using-part-of-xsd
-file-only-tf3478859.html#a9711848
Sent from the Xml Beans - User mailing list archive at
Nabble.com.
------------------------------------------------------------
---------
To unsubscribe, e-mail: user-unsubscribe xmlbeans.apache.org
For additional commands, e-mail: user-help xmlbeans.apache.org
La información contenida en el presente e-mail es
confidencial y está reservada para el uso exclusivo de su
destinatario. Se prohíbe estrictamente la distribución,
copia o utilización de esta información sin el previo
permiso de su destinatario. Si usted no fuera el
destinatario, por favor notifíquelo inmediatamente al
remitente y elimine el presente mensaje de su sistema
informático.
Information contained in this e-mail is confidential and is
intended for the use of the addressee only. Any
dissemination, distribution, copying or use of this
communication without prior permission of the addressee is
strictly prohibited. If you are not the intended addressee,
please notify the sender immediately by reply and then
delete this message from your computer system.
------------------------------------------------------------
---------
To unsubscribe, e-mail: user-unsubscribe xmlbeans.apache.org
For additional commands, e-mail: user-help xmlbeans.apache.org
|