Access methods is not generated in making XML object from the XML file using namespace.
Ryuji Hattori<[email protected]>
| Newsgroups | gmane.comp.java.enhydra.xmlc |
|---|---|
| Message-ID | <[email protected]> |
Hello All. I am trying to XML Objects by XMLC from some XML documents. Compiles from XML to Java source passes easily and access methods are generated normally. However in the case of XML document with using namespace no access method is generated although some id attributes are set in the elements. for instance, in the case of following XML document ----------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xupdate:modifications SYSTEM "xupdate.dtd"> <xupdate:modifications version="1.0" xmlns:xu="http://www.xmldb.org/xupdate"> <xupdate:insert-after id="insertDateCommand" select="document"> <xupdate:element id="updateDate" name="update_date">123456789</xupdate:element> </xupdate:insert-after> <xupdate:update id="updateMail" select="document">[email protected]</xupdate:update> </xupdate:modifications> ----------------------------------------------------------------------------------------------- and -dump and -methods options output is ----------------------------------------------------------------------------------------------- Element IDs: Document URLs: DOM hierarchy: LazyDocument%[T]: LazyDocumentType: name=xupdate:modifications LazyElementNS: NS=http://www.xmldb.org/xupdate: xupdate:modifications: version="1.0" xmlns:xu="http://www.xmldb.org/xupdate" LazyElementNS: NS=http://www.xmldb.org/xupdate: xupdate:insert-after: id="insertDateCommand" select="document" LazyElementNS: NS=http://www.xmldb.org/xupdate: xupdate:element: id="updateDate" name="update_date" LazyText: 123456789 LazyElementNS: NS=http://www.xmldb.org/xupdate: xupdate:update: id="updateMail" select="document" LazyText: [email protected] ----------------------------------------------------------------------------------------------- please teach me how to generate access methods in the case. my enviroment is following: OS: Windows 2000 JDK: JDK 1.4.1_02 Enhydra: 5.1beta8 XMLC: 2.1 Alpha compile option is -generate both -parser xerces -validate true -domfactory org.enhydra.xml.xmlc.dom.lazydom.LazyDomFactory *********************************************** Ryuji Hattori in Hitz Technical Lab ( [email protected] )