We use the WPF Studio with .Net and Web Language Add-ons.
Parsing the SyntaxEditor in ASTNodes is an interesting point for us that might give us the ability to look for Elements/Attibutes in XML and to use their Textranges for copy/replace etc.. in the document.
Til now we parse the xml in Syntax Editor using something like:
XmlParseData parseData = xmlEditor.Document.ParseData as XmlParseData;
and then we add every parseData.Ast (IAstNode) and all Children to a List.
This results in a hierachical list of DefaultAstNodes. So far very nice.
But it would be very nice to have our own AstNode Type in this list. Which contains
only Elements and Attributs etc..
Now my beginner questions:
Is this the right way to access XML Elements in SyntaxEditor and to work with their
Text presentation?
Do you have tutorials describing how to define and integrate selfmade ASTNodes?
Are there any samples for working with xml and XmlParseData?
Do we have to use the Language Designer tool for that?
Simply: What would you recomment how to begin?
Parsing the SyntaxEditor in ASTNodes is an interesting point for us that might give us the ability to look for Elements/Attibutes in XML and to use their Textranges for copy/replace etc.. in the document.
Til now we parse the xml in Syntax Editor using something like:
XmlParseData parseData = xmlEditor.Document.ParseData as XmlParseData;
and then we add every parseData.Ast (IAstNode) and all Children to a List.
This results in a hierachical list of DefaultAstNodes. So far very nice.
But it would be very nice to have our own AstNode Type in this list. Which contains
only Elements and Attributs etc..
Now my beginner questions:
Is this the right way to access XML Elements in SyntaxEditor and to work with their
Text presentation?
Do you have tutorials describing how to define and integrate selfmade ASTNodes?
Are there any samples for working with xml and XmlParseData?
Do we have to use the Language Designer tool for that?
Simply: What would you recomment how to begin?