The easyXML Bean Suite provides the functionality to develop Java applications for processing XML (eXtensible Markup Language) documents. It can also be used for adding XML support to existing applications.
Wiring Example
- wire the root XMLElement to XMLHolder's inputRoot property
- assemble the tree by wiring XMLElements together via the addChildElement property
- wire XMLAttributes to the tree via the addAttribute property
- set XMLElement and XMLAttribute inputName properties to the names of corresponding elements and attributes in the XML file
- to use XMLFileGenerator functions, wire XMLHolder's sourceDocument property to XMLFileGenerator's inputDocument property
- once the tree has been assembled, you can connect a specific XMLElement or XMLAttribute value to other elements in your application by simply wiring the bean's textValue or value property to other application elements.
- Do I have to create a tree of XMLElements according to dtd just step-by-step?
Generally, yes. However, you can skip those elements that you don't want to handle. Just remember that if you exclude any element, you can't access any of its sub-elements.
- Can I create an application that not only displays siblings as the demo shows "to", but allows to edit them as well?
Yes, you can create an application that allows to edit and even to add new siblings (see User Documentation or aboutThisBean property "expert features" page for XMLElement), but you can't create an application that allows to delete any of them. It is a limitation of this version. The feature will be implemented in the next release.
- Can I use XML that have DTD in a separate file?
Yes, you can. Just make sure that both files are valid and dtd file placed correctly.
- Is EasyXML Beans Suite "100% Pure Java"?
Yes. Although not officially certified by Sun, the beans have been written in 100% Pure Java.
- Is it possible to change an XML-document's structure using these beans?
Although you are permitted to change an XML-document's structure, this is not recommended. The reason of this is that the IBM's XML Parser for Java which is used internally by the Easy XML package performs a validity check of XML-documents only when the document is parsed. This means that you can change the structure of an XML document in any way and save it. Successive attempts to load the document may result in a parse error. Thus, it is strongly suggested that you avoid restructuring of an XML documents.
- During the application run time, when changing the element's value - any value(s) is deleted! Why?
Make sure that you have changed the property textValue and not inputName. Editing the inputName during run time causes clearing any XML information stored in it.
- When I try to use the XMLHolder bean in BeanBox, messages stating that a property editor is not found appear on the standard output. What is wrong?
BeanBox produces these messages for all properties that do not have property editors except those of primitive types (i.e. int, boolean etc.) the same as of the String and Color types. Do not pay attention to these messages, there is nothing wrong with the XMLHolder bean.
Click here to view the
Installation Procedures
easyXML Platform Requirements |
Development System |
Any platform that supports JDK 1.1 |
Run-time System |
Any platform that supports JDK 1.1 |
Java Tools |
Any tool that supports JavaBeans |
|