To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=58667





------- Additional comments from [email protected] Mon Mar 15 06:47:35 
+0000 2010 -------
I am trying this with OO version 3.2. This bug still exists when i add an 
userdefined attribute to a para containing new lines in it. 
I am setting the UDA like this

XNameContainer uda = null;
uda = (XNameContainer) AnyConverter.toObject(new Type(XNameContainer.class),
                                                                                
xSet.getPropertyValue("ParaUserDefinedAttributes"));
                                                
attr = new AttributeData();
attr.Type = "CDATA";
attr.Value = "_ISBK_"+counter.toString();
counter++;
uda.insertByName("ldid", attr);
xSet.setPropertyValue("ParaUserDefinedAttributes", uda);

But when i query the para again to get the UDA i just set i get a NoSuchElement 
exception.

uda = (XNameContainer) AnyConverter.toObject(new Type(XNameContainer.class),    
                                                            
xSet.getPropertyValue("ParaUserDefinedAttributes"));

AttributeData attr2 = (AttributeData)uda.getByName("ldid");

When i Query in the last line, i get an exception. I examined the odt's 
content.xml. There as well the UDA has not been set.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to