[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-j-dev
Subject: Using Xalan to generate XML data on the fly
From: "Somsak AsSawakulpaibool" <somsak () comhill ! com>
Date: 2000-11-30 21:22:36
[Download RAW message or body]
Hi guy,
Is there anyway I can use Xalan to read DTD or schema for create or validate DOM \
document object on the fly without XML file?
A.Somsak
Roman Kisin wrote:
>
> I'm having trouble using xerces 1.2.1/1.2.2 for validating xml against
> schema that has type derivation by using <extension base="fooType">
> Is it a bug in Xerces or perhaps I'm doing something wrong.
> Could you please send me a sample of xml and xsd file pair that works with
> xerces.
>
> Thanks in advance,
> Roman
>
> po.xsd
> <?xml version="1.0" encoding="UTF-8"?>
> <schema>
>
> <element name="purchaseOrder" type="PurchaseOrderType"/>
>
> <complexType name="PurchaseOrderType">
> <sequence>
> <element name="internationalPrice" type = "internationalPriceType"
> minOccurs="0"/>
> </sequence>
> <attribute name="orderDate" type="date"/>
> </complexType>
>
> <complexType name="internationalPriceType">
> <complexContent>
> <extension base="decimal">
> <attribute name="currency" type="string" />
> </extension>
> </complexContent>
> </complexType>
> </schema>
>
> ------------------------
> po.xml
> <purchaseOrder xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation='http://localhost/menerva/po.xsd'>
> orderDate="1999-10-20">
>
> <internationalPrice currency="US">
> 10
> </internationalPrice>
> </purchaseOrder>
>
> ---------------------------------------------------------------------
> 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic