| Summary: | Attribute xml binding does not work with default DOM parser | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Konstantin Komissarchik <konstantin> |
| Component: | Sapphire | Assignee: | Konstantin Komissarchik <konstantin> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | ling.hao |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Konstantin Komissarchik
Modified XmlAttribute.getLocalName() to call Attr.getName() if Attr.getLocalName() returns null or "". This should account for differences among DOM implementations. Improved the existing unit tests in XmlBindingTests to cover this scenario. The unit tests were already testing attribute XML binding, but they were only setting properties and verifying the resulting XML. The tests now also read the property after setting it to confirm that the set value can be read back correctly. To test this in the context of XML editor's DOM implementation, use the contacts sample. The IContact.Name property is configured to use attribute binding. Verified code gen with IContact.name. Opened a related minor bug in 0.3: Bug 333782 |