Hi everyone,
I just wondering about a couple of things of Schema support in dom4j.
First of all it seems that xsd:string is not supported. If I use
SchemaBuilder with a existing schema that used xsd:string as a simple type for an
attribute I got a weired message :
Warning: Couldn't find DataType for type: xsd:string attribute: Event
As you can see that isn't a stack trace from an exception. Here the code
that I used:
public SchemaMapper(File file) throws Exception {
SAXReader reader = new SAXReader();
this.factory = SchemaDocumentFactory.getInstance();
reader.setDocumentFactory( this.factory);
this.schema = reader.read(file);
((SchemaDocumentFactory)factory).loadSchema(this.schema);
}
The schema builder reporst with the warning. Here is the a schema snipplet:
<xsd:element name="Message">
<xsd:attribute name="Event" type="xsd:string" />
</xsd:element>
Another question:
How does dom4j handels ref attribute for groups, elements and attributes.
new elements on heap or just references to them? I think this would safe
memory. But I guess we need a method like #isReferenced() and/o
#resolveReference() that returns the source as an Elment instance. Any further thought,
comments, motivation ;-), ideas ?
Bye and thx
-toby
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
GMX Tipp:
Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dom4j-user