Gosia Notice the base class AnyNode is not implementing w3c Node here is the distinction first look at Node Interface..notice that there are no references to AnyNode? http://docs.oracle.com/javase/6/docs/api/org/w3c/dom/Node.html
lets take a look at AnyNode http://www.castor.org/javadoc/org/exolab/castor/types/AnyNode.html Notice AnyNode only extends Object and implements Serializable for Marshalling and Unmarshalling Thus AnyNode is an artifact of Castor and has no basis in the w3c DOM4 Spec http://www.w3.org/TR/domcore BTW: the same holds true for interface Attr which implements Node and is thus subject to the same limitations http://docs.oracle.com/javase/6/docs/api/org/w3c/dom/Attr.html AnyAttr is treated by castor as a string representation of SchemaName http://castor.codehaus.org/javadoc/constant-values.html Notice SchemaName only extends Object and does not implement Serializable! http://castor.codehaus.org/javadoc/org/exolab/castor/xml/schema/SchemaNames.html If you feel this omission is in error I encourage you to contact the DOM4 Spec authors and petition to rectify Powodzenia Martin ______________________________________________ Jogi és Bizalmassági kinyilatkoztatás Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Date: Tue, 21 Aug 2012 11:12:46 +0200 From: [email protected] To: [email protected] Subject: [castor-user] <any> wildcards & Castor Dear castor users, I am not sure if I understand documentation at page http://www.castor.org/xmlschema.html. It says: Supported XML Schema Structures (...) - Wildcard (<any>) And: Wildcard <any> is supported in the Source Generator and will map to an AnyNode. However full namespace validation is not yet implemented even though an AnyNode structure is fully namespace aware. <anyAttribute> is currently not supported. It is a work in progress. What does it mean? I understand that I can have one schema which defines there <any> elements. This schema can include another, which defines how this child section should look like, but Castor does not validate it during unmarshalling. Am I wrong? If I am wrong, I would be grateful if anyone could tell me more about the details, what exactly is possible using Castor. Best regards, Gosia Wolniewicz -- Małgorzata Wolniewicz Poznań Supercomputing and Networking Center Scientific Applications Department email: [email protected] www: http://www.man.poznan.pl skype: gosiawolniewicz tel. +48 61 858-21-74

