I have a few questions:
1. I have an XML table with multiple keys. Each key has a set of properties. I would like to use a spreadsheet formula to get a table back with only one of the keys.
For example, I have a Tictactoe board with three rows and three columns:
<Table>
<Row name="R1">
<Property name="C1" value="-" />
<Property name="C2" value="-" />
<Property name="C3" value="O" />
</Row>
<Row name="R2">
<Property name="C1" value="-" />
<Property name="C2" value="X" />
<Property name="C3" value="X" />
</Row>
<Row name="R3">
<Property name="C1" value="X" />
<Property name="C2" value="-" />
<Property name="C3" value="O" />
</Row>
</Table>
I want to return the first row in a table, like this:
<Table>
<Row name="R1">
<Property name="C1" value="-" />
<Property name="C2" value="-" />
<Property name="C3" value="O" />
</Row>
</Table>
Can't figure out how to do it.
I can get things like "R1,R2,R3" and "C1,C2,C3" and ""-,-,O" just fine, but not the XML.
I can extract all the values I want and reconstruct the XML, but it's a lot of work.
2. I'd like to rename a row. Can't figure that out either.
Also I don't know a handy way to create XML, because of the quotes problem. I end up with things like
="<Property name="&Q&"C1"&Q&" value="&Q&A11&Q&">"
where Q is a named range containing a quotation mark. I can chose the values by creating a formula list, displaying all the attributes and filtering for the key I want. But it isn't pretty.