| 511 | // the name is either a string or an xpath that needs evaluation. 99% of the time it is a string |
| 512 | #[derive(Debug, Clone)] |
| 513 | struct Intent { |
| 514 | name: Option<String>, // name of node |
| 515 | xpath: Option<MyXPath>, // alternative to directly using the string |
| 516 | id: Option<MyXPath>, // optional id attr (default to the id of the node being replaced) |
| 517 | children: ReplacementArray, // children of node |
| 518 | } |
| 519 | |
| 520 | impl fmt::Display for Intent { |
| 521 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |