Page 1 of 1

Grid View (A Couple Problems)

Posted: Sat Dec 23, 2006 1:05 pm
by inrelief
Hi all,
I have been shopping around for an XML editor with a -good- grid view that doesn't cost at arm and a leg. It seems that oXygen fits the bill, however there are a couple quirky behaviors that are driving me crazy and I need to resolve before I purcahse on a large scale.

1:
When editing xml data with the grid view, new attributes are created inline, that is, there is no line break following the previous row. Granted I could go in and insert them manually, but then why even bother with the grid view?

2:
When converting the grid view to text, the text generator attempts to insert double quotes around double quotes.
eg, <param name="foo" value=""0.00""/>
where is should be
<param name="foo" value='"0.00"'/>
(look carefully, the second line has double quotes enclosed w/single quotes.)
This clearly generates an error on validation.

So, these problems are driving me crazy. I like the product, and enjoy the features it purports to have, but these quirks are driving me away. Can anybody help me resolve them?

Thanks.

Posted: Tue Dec 26, 2006 9:42 pm
by inrelief
Am I really the only person who has noticed this problem??!??

Posted: Wed Dec 27, 2006 1:44 pm
by Radu
Hi,

Thank you for contacting us.

For problem 1:
As I see it you want some kind of format and indent when passing from grid to text.
There is a check box in Oxygen Options->Preferences->Editor->Grid : "Format and indent when passing from grid to text or on save". If it does not work as you expected a more detailed description could help us.

For problem 2:
You must not add the quotes when editing attribute values, just enter the attribute value in the cell so that quotes are automatically added when passing to text.
If you need quotes in the attribute value you have to enter them like entities: " just like you would when editing in plain text.

Regards, Radu

Posted: Wed Dec 27, 2006 5:04 pm
by inrelief
Radu,
Thank you for your reply.
I am concerned regarding using HTML entities to define quotations around attributes as this xml is being used by a c# object generator (of which I have no hand in the design), and i believe it parses out the explicit quotes.

Do you feel these concerns are an issue?

As per text formatting/indentation, I am ashamed to say I just hadn't set my settings properly, and assumed it was a bug.

Posted: Wed Dec 27, 2006 5:37 pm
by Radu
Hi,

So, to make things clear, in order to generate this XML in the grid:

Code: Select all

<elem attr="value"/>
in the cell corresponding to the "attr" attribute column you just need to type

Code: Select all

value
and save.

On the other hand, if you need to use quotation characters (like simple or double quotes) in the attribute 's value itself you have to escape them somehow in order for the XML to be well formed.
They can be escaped like HTML entities: &apos; or "

Code: Select all

<elem attr="attribute&apos;s value"/>
Decimal entities like: ' for simple quotes and " for double quotes

Code: Select all

<elem attr="attribute's value"/>
Hexadecimal entities like: ' for simple quotes and " for double quotes

Code: Select all

<elem attr="attribute's value"/>
All the 3 notations above should be equivalent to an XML parser when parsing the XML file and be resolved to the right characters (' or ").

Best regards,
Radu

Posted: Thu Dec 28, 2006 7:16 pm
by inrelief
Radu,
Thank you for your concise replies.