This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // other appropriate imports | |
| sealed trait IndentState | |
| /** The last event was an element */ | |
| case object LastElem extends IndentState | |
| /** The last event was an item */ | |
| case object LastItem extends IndentState | |
| /** The last was an end elem */ | |
| case object LastEndElem extends IndentState | |
| /** First element*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://stackoverflow.com/questions/11758607/selecting-a-xml-attribute | |
| // See https://github.com/chris-twiner/scalesXml for details on how to use | |
| // save this as loadme.scalaScript and use :load loadme.scalaScript in the repl | |
| import scales.utils.top | |
| import scales.xml._ | |
| import ScalesXml._ | |
| import Functions._ | |
| val reportxml = """<wrapper> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| path.\.descendant_::.*(Elements.localName("DontRedeclare")).pos(1) | |
| path.\\.*.\.preceding_sibling_::.*(2) | |
| path.\\.ancestor_::.* |